Learn R Programming

lares (version 4.7)

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)

Arguments

df

Data.frame

all

Boolean. Remove columns which contains ONLY NA values. If set to FALSE, columns which contains at least one NA will be removed

See Also

Other Data Wrangling: balance_data, calibrate, categ_reducer, cleanText, date_feats, dateformat, formatNum, formatTime, holidays, impute, left, normalize, numericalonly, ohse, one_hot_encoding_commas, rbind_full, removenarows, replaceall, right, textFeats, textTokenizer, vector2text, year_month, year_week