powered by
Numeric vector with percentage representation
percent(x, digits, format = "f", ...)# S3 method for default percent(x, digits = 2L, format = "f", ...)# S3 method for character percent(x, digits = NA, format = "f", ...)
# S3 method for default percent(x, digits = 2L, format = "f", ...)
# S3 method for character percent(x, digits = NA, format = "f", ...)
a numeric vector.
an integer to indicate the number of digits of the percentage string.
format type passed to formatC.
formatC
additional parameters passed to formattable.
formattable
# NOT RUN { percent(rnorm(10, 0, 0.1)) percent(rnorm(10, 0, 0.1), digits = 0) percent("0.5%") percent(c("15.5%", "25.12%", "73.5")) # }
Run the code above in your browser using DataLab