zerovar: Zero Variance Columns

View source: R/wrangling.R

zerovarR Documentation

Zero Variance Columns

Description

This function detects which columns have the same value (whichever) for each column.

Usage

zerovar(df)

Arguments

df

Dataframe

Value

Character vector with column names on which its values have no variance.

See Also

Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_cuts(), date_feats(), file_name(), formatHTML(), holidays(), impute(), left(), normalize(), num_abbr(), ohe_commas(), ohse(), quants(), removenacols(), replaceall(), replacefactor(), textFeats(), textTokenizer(), vector2text(), year_month()

Examples

df <- data.frame(a = c(1, NA, 3), b = rep(NA, 3), c = rep(5, 3))
print(df)
zerovar(df)

laresbernardo/lares documentation built on Oct. 23, 2024, 12:05 p.m.