A shortcut for prop_table that displays values as percentages and rounds them. For example, rprop_table(var, 1) is equivalent to round(prop_table(var)*100, 1).
To avoid confusion with the margin argument in prop_table, the digits argument here must be named. to allow for piping, in a way similar to wtable(), the margin argument here must be named as well.
1 | rprop_table(..., margin = 0, digits = 1)
|
... |
arguments to be passed to methods. |
margin |
index to generate margin for |
digits |
integer indicating the number of decimal places
( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.