I did the knn imputation following this post: KNN imputation R packages
I met the error: Not sufficient complete cases for computing neighbors. Even when k = 1, this error occurs.
data.imputed <- knnImputation(data, k=3)
Error in knnImputation(data) :
Not sufficient complete cases for computing neighbors.
However the data should have sufficient complete cases. What's the problem?
dim(data)
[1] 779 1558
sum(complete.cases(data))
[1] 600