Format a data.frame with a specified number of decimal places
format_df(tbl, dec = NULL, perc = FALSE, mark = "", na.rm = FALSE, ...)
tbl | Data.frame |
---|---|
dec | Number of decimals to show |
perc | Display numbers as percentages (TRUE or FALSE) |
mark | Thousand separator |
na.rm | Remove missing values |
... | Additional arguments for format_nr |
Data.frame for printing
#> x y z #> 1 a 1 -0.0005 #> 2 b 2 3.0000#> x y #> 1 1 6.00% #> 2 2 80.00%#> x y #> 1 1 NA #> 2 2 1.01 #> 3 NA 2.80