filter_missing_values {HPiP} | R Documentation |
Given an input matrix, compute the missingness rate for each features and keep only features with missing rate more than user-defined percentage.
filter_missing_values(x, max_miss_rate = 20)
x |
A numeric matrix as input. |
max_miss_rate |
Maximal missing rate allowed for a feature;default is 20. |
filter_missing_values
A dataframe with features with missingness rate of more than user-defined threshold.
Matineh Rahmatbakhsh, matinerb.94@gmail.com
x <- matrix(1:10, ncol = 2) x[, 2] <- NA filter_missing_values(x, 30)