R/plots-publication.R
cr_format_percent.Rd
Format proportions as percentages
cr_format_percent(x, digits = 1)
Numeric proportions.
Decimal places.
A character vector of percentages; NA inputs stay NA.
NA
cr_format_percent(c(0.125, 0.5, NA)) #> [1] "12.5%" "50.0%" NA