powered by
Style percentages to be displayed in tables or text
style_percent(x, symbol = FALSE)
numeric vector of percentages
Logical indicator to include percent symbol in output. Default is FALSE.
FALSE
A character vector of styled percentages
# NOT RUN { percent_vals <- c(-1, 0, 0.0001, 0.005, 0.01, 0.10, 0.45356, 0.99, 1.45) style_percent(percent_vals) style_percent(percent_vals, symbol = TRUE) # }
Run the code above in your browser using DataLab