R/tbl_get_vars.R
tbl_get_vars_zero_all.Rd
Get column / variable names having all values are 0 from a tbl.
tbl_get_vars_zero_all(tbl)
tbl | a tbl. |
---|
a cheracter vector of column / variable names.
if (FALSE) { tbl <- tibble::tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 0 ) tbl tbl %>% tbl_get_vars_zero_all() tbl2 <- tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 0 , xx = 0:4 , yy = 0) tbl2 %>% tbl_get_vars_zero_all() }