remove_columns: Remove columns based on a number of distinct values

Description Usage Arguments Details Value Examples

Description

Remove columns with less than a specified number of distinct values.

Usage

1
remove_columns(df, .uniqueness = 1)

Arguments

df

the input dataframe

.uniqueness

the number of unique values the value should take on, omitting NAs.

Details

Functions to help with data cleaning

Value

A dataframe with columns removed. Note: using 0 will remove columns where all observations are NA.

Examples

1
2
3

KevinRPan/handy documentation built on May 4, 2019, 2:34 p.m.