eliminate_single_value_cols: Subsets to columns with more than one unique value

Description Usage Arguments Examples

View source: R/exploratory_functions.R

Description

This function returns the original data.frame without columns that only have one value for all rows in the data.frame

Usage

1

Arguments

df:

the data.frame to have its single-value columns removed

Examples

1
2
fake_df <- data.frame(a = rep(1, 5), b = (1:5), c = rep('a', 5), d = c('a', 'b', 'c', 'd', 'e'))
eliminate_single_value_cols(fake_df)

zbeaver4/beavR documentation built on May 4, 2019, 9:12 p.m.