fmt_percent.Rd
Formats percentages to be displayed in tables or text of report.
fmt_percent(x, symbol = FALSE)
x | numeric vector of percentages |
---|---|
symbol | logical indicator to include percent symbol in output. Default is FALSE. |
Formatted percentages
#> [1] NA "0" "<0.1" "0.5" "1.0" "10" "45" "99" "145"fmt_percent(percent_vals, symbol = TRUE)#> [1] NA "0%" "<0.1%" "0.5%" "1.0%" "10%" "45%" "99%" "145%"