Description Usage Arguments Details
Extract a matrix or data.frame of question marks
1 2 3 | ## S3 method for class 'mdl_quiz_data'
quiz_items(x, marks = "categorical",
question.type = NULL, fill = NA, mat = TRUE)
|
x |
An object of class |
marks |
Char, defaults to "categorical" |
question.type |
List of distractors for to get key for; if |
fill |
What to use to fill missing values, defaults to |
mat |
If |
Extract item marks either as binary (correct/incorrect) or categorical data (for multiplechoice questions). If the test contains a mixture of binary and categorical items (such as truefalse and multichoice), than marks = "binary"
will collapse multiple choice items into correct/incorrect (1/0). When using marks = "categorical"
, mutliplechoice options will be preserved but a key needs to be obtained (see quiz_key
for details). Weighted percentages can also be extracted by marks = "weighted"
- in this case, each item's contribution will be weighted by its nominal weight, set in the quiz edit page in Moodle. Finally, you can obtain nominal weights as they appear on the edit quiz page, using marks = "nominal"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.