pct | R Documentation |
takes a dichotomous vector (0/1) and turns it into a percent value with '
pct(x, digits = 2, format = "dec")
x |
a vector of dichotomous values (0/1) in dec, num, or char format. |
digits |
number of digits to round the percent to |
format |
the format that the vector x is in. can be 'dec', 'num', or 'char' |
pct_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.