| rep_sum_pct | R Documentation | 
Reporting helper function: computes and formats the relative percentage of a count.
rep_sum_pct(
  count,
  count_reference,
  digits = 2,
  na.rm = TRUE,
  brackets = c("round", "square"),
  suffix = TRUE
)
| count | A numeric. The numerator. | 
| count_reference | A numeric. The denominator. | 
| digits | An integer indicating the number of decimal places. | 
| na.rm | A logical indicating if missings should be removed from  | 
| brackets | A character. Either  | 
| suffix | A character which is placed between the lower and the upper confidence bound in the formatted output. | 
A character with the formatted output.
stats::median, stats::quantile, Hmisc::wtd.quantile()
rep_sum_pct(count = 40, count_reference = 200)
rep_sum_pct(count = 40, count_reference = 200, brackets = "square")
rep_sum_pct(40, 200, brackets = "square", suffix = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.