Apply log10()
on numeric columns / variables from a tbl.
tbl_convert_log10(tbl, frac = 0)
tbl | a tbl. |
---|---|
frac | a numeric value to be added before applying log10. |
a tbl.
if (FALSE) { tbl <- tibble::tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 1:5 ) tbl tbl %>% tbl_convert_log10() tbl %>% tbl_convert_log10(frac = 0.01) }