delSinvalPercent: Delete Variables Based on Single-Value Percent

Description Usage Arguments Details Value See Also

Description

delSinvalPercent will delete variables whose single-value percent is more than or equal to the given threshold, then return a new dataframe.

Usage

1
delSinvalPercent(df, percent = 0.9, exclude = NULL)

Arguments

df

A dataframe.

percent

The given threshold, default 0.9.

exclude

Vector of column names or numbers to exclude, default NULL.

Details

generally, in score model, the threshold of single value percent is often set to 0.9.

Value

A dataframe after deleted

See Also

Other data preprocessing functions: delFewValues, delNArate, excludeCol, maxSinvalPercent


xxzcool/scoremodel documentation built on May 4, 2019, 10:56 a.m.