Description Usage Arguments Details Value Examples
Remove columns with less than a specified number of distinct values.
1 | remove_columns(df, .uniqueness = 1)
|
df |
the input dataframe |
.uniqueness |
the number of unique values the value should take on, omitting NAs. |
Functions to help with data cleaning
A dataframe with columns removed. Note: using 0 will remove columns where all observations are NA.
1 2 3 | df <- head(data.frame('x' = letters, 'y' = rep(0, length(letters)), z = rep(NA, length(letters))))
remove_columns(df)
remove_columns(df, 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.