RequireQuestionType: Check that variables supplied belong to a certain question...

View source: R/utilites.R

RequireQuestionTypeR Documentation

Check that variables supplied belong to a certain question type.

Description

Helper function to use in Standard R items which require the user to select variables of a certain question type / variable set structure.

Usage

RequireQuestionType(variables, required.type, message.prefix, message.suffix)

Arguments

variables

A list containing the variables (or questions) to check.

required.type

A string indicating the required questiontype value. Should be one of: "PickAny", "PickOne", "PickOneMulti", "Number", "NumberMulti", "NumberGrid", "PickAnyGrid", "Text", "TextMulti", "Ranking", or "Experiment".

message.prefix

Text to display in the error message before the required question type / structure.

message.suffix

Text to display at the end of the message.


Displayr/flipU documentation built on March 2, 2024, 4:35 a.m.