clean_by_levels | R Documentation |
Removes un-informative cols from a data.frame
clean_by_levels(dat, n_levels = 1)
dat |
a data.frame |
n_levels |
thresholded number of items to keep column |
a data.frame without un-informative columns
library(delutils)
dat <- data.frame(A=rep(1,4), B=seq(1,4), C=c('f1', 'f2', 'f1', 'f1'))
cleaned_dat <- clean_by_levels(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.