add_answer_option_to_question {limonaid} | R Documentation |
Add an answer option to a question
Description
This is a convenience function that allows you to add an answer option to a question object.
Usage
add_answer_option_to_question(question, ...)
Arguments
question |
The limonaid Question object |
... |
Options that are passed on to the Question's |
Value
The question object.
Examples
myQuestion <-
limonaid::Question$new(
code = 'myQuestion',
type='radio'
) |>
add_answer_option_to_question(
code = 1,
optionTexts = "First option"
) |>
add_answer_option_to_question(
code = 2,
optionTexts = "Second option"
);
[Package limonaid version 25.5.5 Index]