tbl_remove_vars_NA_all: Remove columns / variables having all values are NA

Description Usage Arguments Value Examples

View source: R/tbl_remove_vars.R

Description

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.

Usage

1

Arguments

tbl

a tbl.

Value

an integer.

Examples

1
2
3
4
5
## Not run: 
 tbl <- tibble(x = letters[1:5] , y = NA , z = c(1,2,3,NA,5) )
 tbl %>% tbl_remove_vars_NA_all()

## End(Not run)

cparsania/TidyWrappers documentation built on Feb. 6, 2022, 3:25 p.m.