zerovar {lares} | R 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)
[Package lares version 5.2.8 Index]