SurveyQuestion: A class for representing parsed survey responses

Description Usage Arguments Details Value See Also

Description

This long format data frame is produced by loadSurveyMonkeyXLS. Methods are defined for summary and plot. It is unlikely that you will need to call constructor method directly. However, this help file describes the structure of the SurveyQuestion object.

Usage

1
2
SurveyQuestion(respondentId, questionId, question, subgroup, response, type,
  questionProperties)

Arguments

respondentId

Factor of identifiers to link individual response rows from the same individual respondent.

questionId

Integer vector of identifiers to link individual response rows from the same survey question.

question

Factor of the text of the questions from the survey corresponding to the response.

subgroup

Factor of the text of items when the survey question was of a block or matrix format with responses given to a number of different items

response

Character vector of the individual responses given in the survey

type

Factor describing the format of the corresponding question. The format of a question determines how it is treated by plot and summary methods

questionProperties

Data frame defining the properties of each question in the survey. See questionProperties for structure and details

Details

The questionProperties object is stored as an attribute named "questionProperties" in the SurveyQuestion object. It contains one row for each question in the survey. It contains questionId, question, and type columns similar to those described above as well as two list columns, subgroups and responses, which store the factor levels that apply to each individual question. The questionId, question, and type columns are duplicated in the main SurveyQuestion data frame for human readability, but all methods use the values stored in the questionProperties attribute. Therefore, if you need to alter the properties of a question, you will need make those changes in the questionProperties attributes. Convenience functions exist for common changes.

Value

An object of class SurveyQuestion

See Also

questionProperties, loadSurveyMonkeyXLS, as.SurveyQuestion


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