Learn R Programming

lares (version 4.4)

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