na_col_rm: Utility function to remove columns with no data

View source: R/moas-utils.R

na_col_rmR Documentation

Utility function to remove columns with no data

Description

na.col.rm Removes columns from the data frame that does not contain any data.

Usage

na_col_rm(data)

Arguments

data

a data.frame

Value

a data frame with no empty columns

Examples

df <- data.frame(
ID = 1:3,
Age = c(22, 25,17),
Sex = NA,
group = NA
)
na_col_rm(df)

LCBC-UiO/MOAS documentation built on Aug. 28, 2023, 3:29 a.m.