| h_fmt_count_perc {mcradds} | R Documentation | 
Format count and percent
Description
Help function to format the count and percent into one string.
Usage
h_fmt_count_perc(cnt, perc = NULL, format, ...)
Arguments
| cnt | ( | 
| perc | ( | 
| format | ( | 
| ... | other arguments to be passed to formatters::format_value. | 
Value
A character vector of formatted counts and percents.
Examples
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%)"
)
[Package mcradds version 1.1.0 Index]