Description Usage Arguments Value Examples
This takes a column of numbers in decimal format and turns it into percent format.
1 | as_percent(df = frequencies, var = result)
|
df |
The dataframe with the number column. Defaults to the name frequencies |
var |
The name of the number column. Defaults to the name result |
values will go from decimal to percent format like such: 0.03 -> 3
1 2 3 4 5 6 7 | frequencies <- c(.30,.47,.25, .65, .42,.57,.74,.19,.54,.50,.46,.28,.45) %>%
as.data.frame() %>%
rename(
result = "."
)
as_percent()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.