Description Usage Arguments Examples
Gets percentage of values in a MCSO question with specific value. It is more often used for data checking or reporting single numbers in a document.
1 | get_mcsopct(item, value, digits = 2)
|
item |
Data vector from MCSO question |
value |
The particular value being matched |
digits |
The number of digits after the decimal for rounding the percent |
1 2 3 4 | # Gets the percent of people who answered "Male" as an option
get_mcmopct(survey$Q4, "Male")
# Rounds to the nearest integer
get_mcmopct(survey$Q4, "Male", digits=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.