get_lsLabel: Get Question Label

View source: R/getLabel.R

get_lsLabelR Documentation

Get Question Label

Description

Retrieves question or sub-question text used in a LimeSurvey questionnaire. Implies that the question label has been previously assigned by calling the set_question_labels function. The question label is stored as attribute "label" for each column of the data frame.

In case of sub-questions, the label of the sub-question item is returned, not the text of the overarching (parent) question. To retrieve the corresponding parent question see get_lsParentlabel.

Usage

get_lsLabel(x)

Arguments

x

Variable column of the result data frame

Value

String of question label or NULL if no label has been set.


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