format_perc | R Documentation |
Convert fractions to percentages.
format_perc(fraction, error_on_NA = TRUE)
fraction |
A fraction |
error_on_NA |
A logical |
A character object.
format_perc(0.1) # returns "10%"
format_perc(10) # returns "1000%"
format_perc(NA, error_on_NA = FALSE) # returns NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.