powered by
Vectorised conversion
as_percentage_label(x, decimal_places = 1, include_plus_sign = F)
Numeric vector
Decimal places to display
prepend a "+" to the output if positive (if negative, a "-" must be prepended of course)
Character vector
# NOT RUN { as_percentage_label(0.746) # gives "74.6%" # }
Run the code above in your browser using DataLab