formatAnswer: Format a MTurk qualification test answer key

formatAnswersR Documentation

Format a MTurk qualification test answer key

Description

formatAnswer formats the XML code required to make an answer key for an MTurk qualification test.

Usage

formatAnswers(question_list, question_number)

Arguments

question_list

A list object where the first and second element correspond to the left and right comparison text, respectively, and the third element corresponds to the index of the correct choice.

question_number

An integer referencing the question number as it appears in the MTurk qualification test.

Details

The function automatically formats the XML code required to make a generic answer key for an MTurk qualification test.

Value

A string of XML code that constructs the answer key for an MTurk qualification test.

Author(s)

Ryden Butler


RydenButler/labelR documentation built on May 9, 2023, 5:52 a.m.