Description Usage Arguments Value Examples
Function to randomize a question in a dataframe (internal use)
1 | rte.The.Randomizer(q.text, q.answers, case.now, my.rdn.idx.answers)
|
q.text |
Main text of question (character) |
q.answers |
The answers of the questions as an atomic vector (each alternative as an item) |
case.now |
The random case to build the string (only used for textual switches) |
my.rdn.idx.answers |
The random index of the questions |
A list with the text of the full questions, among other things
1 2 3 4 5 6 7 | q.text <- '\\question Whats my name \\n'
q.answers <- c('\\choice Mario', '\\choice Roberto','\\choice Marcelo')
case.now <- 1
my.rdn.idx.answers <- sample(seq(length(q.answers)))
l.out <- rte.The.Randomizer(q.text,q.answers, case.now, my.rdn.idx.answers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.