create_merged_response_column: Add a Custom Response Column with Merged Contents

Description Usage Arguments Value

View source: R/reorganizing_survey_data.R

Description

The create_merged_response_column() function allows a user to create a response set with a column reflecting the combined contents of several different columns. If the user specifies response columns that are part of the survey question responses, then the responses are coded and the coded values are used instead of the variable response values. The column is appended to the response set and the response set with the additional new column is returned to the user.

Usage

1
2
create_merged_response_column(response_columns, col_name, question_blocks,
  survey_responses)

Arguments

response_columns

a list of names of response columns

col_name

the desired name for the added output column

question_blocks

a list of blocks with questions inserted in place of the BlockElements.

survey_responses

the data frame of responses as imported by ask_for_csv()

Value

a response data frame with a single new column which represents the contents of the specified response_columns.


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