extract_response_labels: Extract Response Labels

View source: R/extractResponseLabels.R

extract_response_labelsR Documentation

Extract Response Labels

Description

Extract all response labels from a LimeSurvey Survey Structure file (*.lss). The *.lss file is exported manually and downloaded. This function extracts all answer codes, their corresponding answer texts in all available languages and returns them as data frame.

Usage

extract_response_labels(file, strip_html = T)

Arguments

file

char path to exported LimeSurvey Survey Structure *.lss file

strip_html

logical. Default set to TRUE will remove any simple HTML tags from the labels. Otherwise leaves label string as exported from LS.

Value

data frame containing the following fields:

  • qid - answer correspond to question with id

  • aid - answer id

  • acode - LS answer code

  • atxt - LS answer text

  • lang - language of answer text


jmueller17/LimeRLabel documentation built on May 2, 2023, 7:13 p.m.