Function creating the interrogation and different propositions as well as the explanations associated with a given version of a question based on alternatives.

create_alternatives(propositions, codes, situation, altnbr, correctnbr)

Arguments

propositions

Tibble. Table from which items (alternatives) and associated explanations are selected.

codes

Character string. Code of the question to which the propositions are linked.

situation

List. The entry selected as the situation which determines which items are true.

altnbr

Integer. Number of propositions (i.e. choices) to offer to the student.

correctnbr

Integer. Number of correct propositions (i.e. choices) to offer to the student.

Value

Tibble. Table containing all the information about the propositions made to the student.

Author

Nicolas Mangin