Learn R Programming

rapport (version 0.40)

check.type: Check Type

Description

Checks type of template input, based on provided sting. If input definition is syntactically correct, a list is returned, containing input type, size limits, and default value (for CSV options and boolean types only).

Usage

check.type(x)

Arguments

x
a character string containing input definition

Examples

Run this code
rapport:::check.type("factor")
rapport:::check.type("character[1,20]")
rapport:::check.type("fee, fi, foo, fam")
rapport:::check.type("FALSE")
rapport:::check.type("number[3]=123.456")

Run the code above in your browser using DataLab