solved no points in data! for knnImpute error 

The preProcess.R has been modified. The original "cols" contains the columns that do not have missing values, which is not right for nn2() function for further imputation.