is_lsSubquestion: Checks if variable is of sub-question

View source: R/isSubquestion.R

is_lsSubquestionR Documentation

Checks if variable is of sub-question

Description

Columns in LimeSurvey based result data frames hold variables that can represent questions or sub-questions. In case a variable represents a sub-question, it can be useful to call get_lsParentlabel in order to retrieve the text of the overarching question.

The function simply checks if the parent label is NULL or not.

Usage

is_lsSubquestion(x)

Arguments

x

Variable column of the result data frame

Value

Bool. TRUE in case the column holds responses of a sub-question


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