drop_na_col: Drop NA Columns

drop_na_colR Documentation

Drop NA Columns

Description

Drops columns with NAs according to a specified criterion.

Usage

drop_na_col(df, method = "all", frac = 0.1)

Arguments

df

A dataframe

method

The drop criterion: * all: Drop columns with all NAs * frac: Drop columns with NAs above a threshold * any: Drop any columns with at least one NA

frac

The threshold (between 0 and 1 inclusive) to be used when method="frac".

Value

A dataframe with some columns dropped according to the supplied specification


gfleetwood/sansor documentation built on Nov. 23, 2022, 10:31 a.m.