This function creates a report based on a specific section as well as a grouping variable. The numeric_table, discrete_table and multi_table functions are used to generate the LaTeX output
1 2 3 4 5 | section_report2(x, qss = qs, sec = "A", sectionvarname = "section",
question.text = "question.text", qs.varname = "question.name",
groupvar = "", multicol = "question.type", multiname = "M",
debug = FALSE, forcegvar = FALSE, varSizeN = "0.15",
levSizeN = "0.05", varSizeC = "0.15", levSizeC = "0.15")
|
x |
Data frame containing the survey results, typically the DES |
qss |
Data frame containing the questions and responses |
sec |
Character vector referring to the section under consideration |
sectionvarname |
Character vector containing the name of the section column |
question.text |
Character vector containing the name of the question text column |
groupvar |
Character vector containing the grouping variable under consideration |
multicol |
Character vector containing the name of the question type column |
multiname |
Character vector referring to the multiple choice questions |
debug |
Logical to display function steps |
forcegvar |
Logical that forces a large amount of grouping variables to be processed if TRUE. This will cause an ugly and unrefined table output |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.