Skip to contents

Re-attach label information from Qualtrics not obtained from regular data downloads

Usage

attach_qualtrics_labels(
  data,
  questions,
  reverse_stata_replacement = FALSE,
  questions_var = "qname",
  questions_question = "question"
)

Arguments

data

Data.frame with original variable names.

questions

Data frame with questions obtained from qualtRics::survey_questions()

reverse_stata_replacement

If variable names have already been modified

questions_var

String, indicating column name in questions that indicates column names.

questions_question

String, indicating column name in questions for the full question. with full stops changed to underscores, this will reverse them for connection. Rarely needed. Defaults to FALSE.

Value

Data returned with only variable labels modified.