answers_from_response_column: Get the Survey Respondents Answers from a Specific Response...

Description Usage Arguments Value

View source: R/reorganizing_survey_data.R

Description

This function is to help in selecting the response data to a specific response column. It selects that data from the lean_responses data (if it's available), or the responses data frame. If it selects the response data from the lean_responses data frame, the returned data frame includes a "Raw Response" and a "Coded Response" column. If not, it includes exactly the response column as it appears in the responses.

Usage

1
2
answers_from_response_column(response_column, responses, lean_responses,
  question_dict)

Arguments

response_column

The name of a response column that appears in the response set.

responses

the data frame of responses

lean_responses

responses reshaped with the lean_responses() function

question_dict

a data frame with each question response column, created by the create_response_column_dictionary() function

Value

a data frame with 2-3 columns, the first being "Respondent ID", the next 1-2 being the response data for each respondent.


ctesta01/qualtrics-R-package documentation built on May 14, 2019, 12:28 p.m.