toChoice: toChoice

toChoiceR Documentation

toChoice

Description

The elements in ... will coerced into one text vector. The entries will either the text (method==NA) or integer number starting at method. The first letter of the list element names will be capitalized.

Usage

toChoice(method = NA, ...)

Arguments

method

integer: which method is used for creating the list elements

...

character: choice values

Value

a list

Examples

txt <- c("the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog")
toChoice(NA, txt)
toChoice(0, txt) # integer sequence starts at zero

sigbertklinke/smvgraph documentation built on Dec. 10, 2022, 9:13 a.m.