Learn R Programming

mark (version 0.8.2)

na_cols: Selecting NA columns

Description

Select or remove columns that are entirely NA

Usage

select_na_cols(x)

remove_na_cols(x)

is_na_cols(x, names = TRUE)

Value

  • select_na_cols() x with only columns that are all NA

  • remove_na_cols() x without columns of only NA

  • is_na_cols() a logical vector: TRUE all rows of column are NA, otherwise FALSE

Arguments

x

A data.frame

names

Logical, if TRUE (default) will return column names as names of vector