R/moas-utils.R
na_col_rm.Rd
na.col.rm Removes columns from the data frame that does not contain any data.
na.col.rm
na_col_rm(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)#> ID Age #> 1 1 22 #> 2 2 25 #> 3 3 17