extract_question_labels: Extract Question Labels

View source: R/extractQuestionLabels.R

extract_question_labelsR Documentation

Extract Question Labels

Description

Extract all question labels from a LimeSurvey Survey Structure file (*.lss). The *.lss file is exported manually and downloaded. This function extracts all question and sub-question texts in all available languages and returns them as data frame.

Usage

extract_question_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 - question with id

  • qcode - LS question code, e.g. SDEM001, GlickM01,

  • subqcode - LS sub-question code, e.g. SQ001, SQ002, etc.

  • qtxt - LS question text

  • subqtxt - LS sub-question text

  • onecode - question and subquestion code as one string

  • lang - language of answer text


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