This function is used to test for discrete variables using any_discrete and then isolates them using only_discrete. It includes tests that identify if there are any multiple choice questions whereby it generates a table showing answer percentages for each variable
1 2 3 | multi_table(vars = vars, qs = NULL, multicol = "question.type",
multiname = "M", question.name = "question.name", maxlevels = 20,
verbose = FALSE, ...)
|
vars |
A data frame of nominal variables such as DES |
qs |
Data frame containing question data |
multicol |
Character vector containing the question type |
multiname |
Character vector containing the name of multiple choice questions |
question.name |
Character vector containing the name of the question |
maxlevels |
Numeric containing the maximum amount of levels |
verbose |
Logical to display messages |
... |
Arguments passed down from the calling function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.