gen_qmd_chapters {saros} | R Documentation |
Generate A Quarto Survey Report
Description
This function generates a Quarto survey report.
Usage
gen_qmd_chapters(
chapter_overview,
data,
mesos_group = NULL,
...,
call = rlang::caller_env()
)
Arguments
chapter_overview |
What goes in each chapter
Data frame (or tibble, possibly grouped). One row per chapter. Should contain the columns 'chapter' and 'dep', Optionally 'indep' (independent variables) and other informative columns as needed. |
data |
Survey data
A data frame (or a srvyr-object) with the columns specified in the chapter_overview 'dep_cat', etc columns. |
mesos_group |
Specific group to compare with
Both the absolute and relative folderpaths are required, as strings. |
... |
Dynamic dots Arguments forwarded to the corresponding functions that create the elements. |
call |
Internal call
Both the absolute and relative folderpaths are required, as strings. |
Details
A report consists of multiple chapters and an index file that merges them together. A chapter can contain any user-defined set of dependent, independent or bivariate variable sets. A chapter consists of multiple sections. A section is defined as a group in the chapter_overview (ignoring the chapter grouping level) containing variables of the same type, meaning at a minimum that the variables in the section sharing the same response options, the same main question, and being of the same data type.
Value
A Quarto survey report generated in the specified working directory.