get_quiz_attr | R Documentation |
Get attributes or meta-information from Moodle Quiz report (i.e., Grades or Responses report) such as type of Moodle Quiz report, maximum grade of each quiz, question's number, question's maximum score, or embedded answer (Cloze) column names (if present).
get_quiz_attr(data)
data |
A data.frame of Moodle Quiz report. |
A List containing Quiz attributes such as:
report_type
: (character) "Grades" for Moodle Grade report or "Responses" for Moodle Responses report.
some_nyg
: (logical) TRUE
: If "Grade/xx" column of the Moodle Quiz report contained some grades that are "Not yet graded".
FALSE
: If "Grade/xx" column contained all numeric grades.
grade_max
: (numeric) Maximum grade of the Quiz
q_no
: (numeric) Only if report_type
is "Grades", then q_no
shows questions number presented in the Moodle Grades report.
q_max
: (numeric) Only if report_type
is "Grades", then q_max
shows maximum scores of corresponding q_no
.
resp_no
: (numeric) Only if report_type
is "Responses", then resp_no
shows responses number of the Moodle Responses report.
cloze_cols
: (character) Only if report_type
is "Responses", then cloze_cols
shows names of the "Responses" column that contained embedded answer (Cloze).
If no Cloze column is presented, return NULL
.
# Grades Report get_quiz_attr(grades_ls$Quiz_1) # Responses Report get_quiz_attr(responses_ls$Quiz_1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.