Description Usage Arguments See Also Examples
Helper function for use in print_dat
1 | format_num(x, digits = 1, big.mark = ",")
|
x |
vector to format |
digits |
number of digits for rounding |
big.mark |
character: separator between 1000s |
Other internal helper functions: calc_churn
,
pct_round
, print_dat
1 2 3 4 5 6 | format_num(c(2005, 2006, NA))
format_num(c(100000, 131000, 150000, NA))
format_num(c(100000, 131000, 150000, NA), big.mark = "")
format_num(c(27.456, 25.234, 30.679, NA))
format_num(c(27, 25, 30))
format_num(c("6.2%", "13.9%", "8.2%", NA))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.