Given data X, removes columns in X according to various data preprocessing/cleaning procedures. `remove_na_cols` removes all columns in the data with at least one NA value. `remove_constant_cols` removes all columns in the data that are a constant value (ignoring NAs). `remove_duplicate_cols` removes columns in the data that are duplicates of another column in the data so that each column in the resulting cleaned data is unique.

remove_na_cols(X, verbose = 0)

remove_constant_cols(X, verbose = 0)

remove_duplicate_cols(X, verbose = 0)

Arguments

X

A data matrix or data frame.

verbose

Integer (0-2) indicating the level of written output.

Value

A cleaned data matrix or data frame.