na_col_rm | R Documentation |
na.col.rm
Removes columns from the
data frame that does not contain any data.
na_col_rm(data)
data |
a data.frame |
a data frame with no empty columns
df <- data.frame(
ID = 1:3,
Age = c(22, 25,17),
Sex = NA,
group = NA
)
na_col_rm(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.