R/tbl_remove_vars.R
tbl_remove_vars_zero_all.Rd
Remove columns / variables having all values are 0 from a tbl.
tbl_remove_vars_zero_all(tbl)
tbl | a tbl. |
---|
a tbl.
if (FALSE) { tbl <- tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 0 ) tbl tbl %>% tbl_remove_vars_zero_all() tbl2 <- tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 0 , xx = 0:4) tbl2 %>% tbl_remove_vars_zero_all() }