clean_by_levels: Removes un-informative cols from a data.frame

View source: R/misc_utils.R

clean_by_levelsR Documentation

Removes un-informative cols from a data.frame

Description

Removes un-informative cols from a data.frame

Usage

clean_by_levels(dat, n_levels = 1)

Arguments

dat

a data.frame

n_levels

thresholded number of items to keep column

Value

a data.frame without un-informative columns

Examples

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)

lefeverde/lefutils documentation built on May 19, 2023, 4 p.m.