tbl_keep_vars_zero_all: Keep columns / variables having all values are 0

Description Usage Arguments Value See Also Examples

Description

Keep columns / variables having all values are 0 from a tbl.

Usage

1

Arguments

tbl

a tbl.

Value

a tbl.

See Also

tbl_remove_vars_zero_all

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 tbl <- tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 0 )
 tbl
 tbl %>% tbl_keep_vars_zero_all()

 tbl2 <- tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 0  , xx = 0:4)
 tbl2 %>% tbl_keep_vars_zero_all()

## End(Not run)

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