return_proportions | R Documentation |
Give proportions and counts for each category of a given group in a long form dataset.
return_proportions(dataframe, variable, precision = 2)
dataframe |
The dataframe containing all longitudinal measures. |
variable |
The variable you want to return the category proportions for. |
precision |
The number of decimal points to round to. |
A datafram with one entry per category of the variable and its proportion.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.