healthcareai-r
healthcareai-r copied to clipboard
Remove columns with near zero varience before center/scale step in prep_data
Whenever a column has only one value, when it gets centered and scaled, the step converts that column to all NAs. And if NAs are fed into the PCA step, it fails. Removing near zero variance columns before centering and scaling would fix this.