as_percentage_label {tidytidbits} | R Documentation |
Format as percentage for output
Description
Vectorised conversion
Usage
as_percentage_label(x, decimal_places = 1, include_plus_sign = F)
Arguments
x |
Numeric vector |
decimal_places |
Decimal places to display |
include_plus_sign |
prepend a "+" to the output if positive (if negative, a "-" must be prepended of course) |
Value
Character vector
Examples
as_percentage_label(0.746) # gives "74.6%"
[Package tidytidbits version 0.3.2 Index]