remove_col_na: Remove columns based on proportion of NA values

Description Usage Arguments Value

View source: R/remove_col_na.R

Description

remove_col_na removed columns in a data frame where the proportion of NA values exceeds the given threshold.

Usage

1
remove_col_na(df, threshold = 0.2, quiet = T)

Arguments

df

The data frame where columns are removed

threshold

The maximum allowable proportion of NA. The default is threshold = 0.2

quiet

Whether to suppress the display the number of removed columns. The default is quiet = T.

Value

A data frame where columns whose proportion of NAs exceed a given proportion removed


awqx/qsarr documentation built on Oct. 2, 2021, 7:05 a.m.