asChoices: asChoices

Description Usage Arguments Value Examples

View source: R/asChoices.R

Description

Creates a list with named elements according to txt. The list elements are the numbers from 1 to length(txt).

Usage

1
asChoices(txt, inc = NULL)

Arguments

txt

character vector: element names

inc

logical vector: if a specific txt element should be included (default:NULL means all elements are included)

Value

a list

Examples

1
2
asChoices(c("German", "English"))
asChoices(c("German", "English", "Spanish"), c(TRUE, FALSE, TRUE))

sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.