Learn R Programming

lares (version 5.0.3)

removenacols: Remove/Drop Columns in which ALL or SOME values are NAs

Description

This function lets the user remove all columns that have some or all values as NAs

Usage

removenacols(df, all = TRUE, ignore = NULL)

Arguments

df

Data.frame

all

Boolean. Remove columns containing ONLY NA values. If set to FALSE, remove columns containing at least one NA.

ignore

Character vector. Column names to ignore validation.

Value

data.frame with removed columns.

See Also

Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_cuts(), date_feats(), formatNum(), holidays(), impute(), left(), normalize(), numericalonly(), ohe_commas(), ohse(), removenarows(), replaceall(), textFeats(), textTokenizer(), vector2text(), year_month(), year_week()