h_fmt_count_perc | R Documentation |
Help function to format the count and percent into one string.
h_fmt_count_perc(cnt, perc = NULL, format, ...)
cnt |
( |
perc |
( |
format |
( |
... |
other arguments to be passed to formatters::format_value. |
A character vector of formatted counts and percents.
h_fmt_count_perc(cnt = c(5, 9, 12, 110, 0), format = "xx")
h_fmt_count_perc(
cnt = c(5, 9, 12, 110, 0),
perc = c(0.0368, 0.0662, 0.0882, 0.8088, 0),
format = "xx (xx.x%)"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.