questionProperties: The questionPropeties object

Description Usage Arguments Details Value See Also

Description

Question properties are automatically generated when a survey is parsed with loadSurveyMonkeyXLS, so you will not likely need to call this function directly. However, it's structure is documented here for reference.

Usage

1
questionProperties(questionId, question, type, subgroups, responses)

Arguments

questionId

Integer vector of unique question identifiers

question

Factor of the text of survey questions

type

Factor describing the format of the question

subgroups

List of character vectors or named lists storing the levels for the SurveyQuestion subgroup column for each question

responses

List of character vectors or named lists storing the levels for the SurveyQuestion response column for each question

Details

The questionProperties attribute stores supporting information about the questions in a SurveyQuestion object such as factor or ordered factor levels that are restored when a single question is extracted from the larger data set via extractQuestion. See getQProps for details on accessing or updating an existing SurveyQuestion object's question properties.

Currently supported values for the type argument are:

SingleQuestion

A single multiple choice survey question wherein only one option can be selected (e.g., radio button or drop-down list)

ResponseBlock

A group of single responses each corresponding to one of several survey items that are enumerated in subgroups (e.g., a matrix of radio buttons)

MultipleResponseQuestion

A single multiple choice survey question that allows more than one option to be selected (e.g., checkboxes)

MultipleResponseBlock

A group of multiple responses each corresponding to to one of several survey items that are enumerated in subgroups (e.g., a matrix of checkboxes)

NumericEntry

A single survey question that takes an entry in the form of a number (e.g., ranking, slider, or textbox)

NumericBlock

A group of numeric entries each corresponding to one of several survey items that are enumerated in subgroups

FreeText

A survey question that accepts any typed input from the respondent. (e.g. "Other" textbox or text area)

Value

A questionProperties data.frame suitable for as.SurveyQuestion or setQProps.

See Also

getQProps, loadSurveyMonkeyXLS, SurveyQuestion


wmurphyrd/monkeywrangler documentation built on May 4, 2019, 9:46 a.m.