Description Usage Arguments Details Value See Also
Returns responses to the specified questionnaire in long format. Incomplete submissions can be excluded.
1 2 | fetch_questionnaires(qnr_cm_id, user_ids, include_incomplete = FALSE, ...,
con = get_session_con())
|
qnr_cm_id |
A single integer corresponding to a questionnaire course
module id (see |
user_ids |
A vector of integers corresponding to userids. |
include_incomplete |
A single logical value indicating whether to include data from incomplete questionnaires (TRUE) or not (FALSE). Note that a questionnaire is considered complete when the entire questionnaire is submitted, even if a non-required question is left blank. |
... |
Potential future args. |
con |
A database connection object, using the session connection by default. |
Moodle does not store short names for questionnaire questions. If you desire wide format data, questions will have to be manually named and reformatted.
A tibble with questionnaire responses for each input userid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.