View source: R/formatQuestion.R
formatQuestion | R Documentation |
formatQuestion
formats the XML code required to make a pairwise comparison
question for a MTurk qualification test.
formatQuestion(
question_list,
question_number,
question_prompt,
is_image = FALSE,
test_question = FALSE
)
question_list |
A list object where the first and second element contain the left and right comparison text, respectively, and the third element contains an integer corresponding to the index of the correct choice. |
question_number |
An integer referencing the question number as it appears in the MTurk qualification test. |
question_prompt |
A string containing the common question prompt used across all pairwise comparison questions. |
is_image |
A logical where TRUE will cause the first two
|
test_question |
A logical where FALSE indicates that the question is a practice question and TRUE indicates that the question is a test question. |
The function automatically formats the XML code required to make a generic pairwise comparison question for an MTurk qualification test.
A string of XML code that constructs a question for an MTurk qualification test.
Ryden Butler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.