Remove columns / variables having all values are NA from a tbl. tbl_remove_vars_NA_all() takes care of both numeric and non numeric columns.

tbl_remove_vars_NA_all(tbl)

Arguments

tbl

a tbl.

Value

an integer.

Examples

if (FALSE) { tbl <- tibble(x = letters[1:5] , y = NA , z = c(1,2,3,NA,5) ) tbl %>% tbl_remove_vars_NA_all() }