Set "<choice>:<label>
" type of Names
choices_labeled.Rd
This is often useful for as it marks up the dropdown boxes for shiny::selectInput()
.
Arguments
- choices
a character / numeric / logical vector
- labels
character vector containing labels to be applied to
choices
. IfNA
then "Label Missing" will be used.- subset
a vector that is a subset of
choices
. This is useful if only a few variables need to be named. If this argument is used, the returned vector will match its order.- types
vector containing the types of the columns.