Remove columns with one value for all rows

pre_rm_static_cols(data, y)

Arguments

data

A data source, that is one of the major R formats: data.table, data.frame, matrix and so on.

y

A string that indicates a target column name.

Value

A dataset with deleted unwanted columns.

Examples

prep_data <- pre_rm_static_cols(compas,'Two_yr_Recidivism')