Convert a numeric value into a string with percentage sign.

as_percent(num, rounding = 0)

Arguments

num

Numeric vector to pass through

rounding

Number of decimal places to round to. Default is 0.

Examples

as_percent(.86748)
#> [1] "87%"