Keep columns / variables having atlease one NA from a tbl. tbl_keep_vars_NA_any() takes care of both numeric and non numeric columns.

tbl_keep_vars_NA_any(tbl)

Arguments

tbl

a tbl.

Value

a tbl.

See also

Examples

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