update_quiz | R Documentation |
After a question from a quiz was answered, the
wordquiz
object must be updated. This function
performs the update depending on the success of the answer
and the type of the quiz.
update_quiz(question, quiz, wl, success)
question |
the |
quiz |
the |
wl |
the |
success |
logical indicating whether the question was answered correctly or not. |
If an wrong answer was given, the wordquiz
object
is returned unchanged. If the answer was correct, the
word that has been quizzed is removed from the quiz.
If the quiz type is "newwords"
, a word is only
removed from the quiz once it has reached a count of 2.
Also, when a word is removed, the weights are adapted,
such that an additional word is included into the quiz.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.