Takes a data.frame and a specified field, calculates the percentage of that field each value represents, and then appends that to the data.frame
1 | percentage(x, field, for_writing = TRUE)
|
x |
a data.frame |
field |
the name of a field to generate the percentages of. |
for_writing |
whether the percentages are for writing out and consumption by the public (1.03 to TRUE by default. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.