enumChoices: Converts a 'choices' parameter to a named list

Description Usage Arguments Value Examples

View source: R/enumChoices.R

Description

The resulting named list contains integer values. The advantage is that the integer values are language independent. Only the list names will be checked send through getText.

The parameter select allows to select only a part the current list.

Usage

1
enumChoices(..., select = NULL)

Arguments

...

choices as text vector, single texts or list

select

boolean vector with the same length as ...

Value

a named list

Examples

1
2
3
4
# Note: here the resulting list contains the integer values
enumChoices("Data set 1", "Data set 2", "Data set 3")
enumChoices(c("Data set 1", "Data set 2", "Data set 3"))
enumChoices(list("Data set 1", "Data set 2", "Data set 3"))

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.