add_question_type: New question type.

View source: R/detector.R

add_question_typeR Documentation

New question type.

Description

Adds a new type of question to the survey question auto-detector.

Usage

add_question_type(name, detector, processor)

Arguments

name

Text string containing the name of this question type

detector

Function that takes a single argument – a vector of data – and returns True or False – whether this data is of the correct type

processor

Function that takes a single argument – a vector of data – processes it, and returns the processed data


rwash/surveys documentation built on Sept. 18, 2023, 11:31 p.m.