drop_percent_missing_fn: Drop columns with over a certain percent missing.

Description Usage Arguments See Also Examples

View source: R/drop_percent_missing.r

Description

Drop columns with over a certain percent missing.

Usage

1
drop_percent_missing_fn(x, threshold = 0.8)

Arguments

x

any. The column to screen.

threshold

numeric. The percent (e.g., 0.5) below which to remove column that have at least that percent missing. The default is 0.8.

See Also

drop_percent_missing

Examples

1
2
3
df <- iris; df[, 6] <- NA; df[1, 6] <- 1; df <- mungebits:::mungeplane(df)
mb <- mungebits:::mungebit(drop_percent_missing)
mb$run(df, TRUE, 0.8) # Drop sixth column

robertzk/syberiaMungebits documentation built on July 30, 2019, 3:37 p.m.