This function loads a matrix or a data-fram a file as a matrix. It ensures that each column of the matrix is numeric, has all non-missing values, and is not constant. It drops any columns that violate these conditions.

Preprocess(z)

Arguments

z

A matrix or a data frame.

Value

A cleaned matrix or data frame with violating columns dropped.