choices_labeled {teal.slice} | R Documentation |
Set "<choice>:<label>
" type of names
Description
This is often useful for as it marks up the drop-down boxes for shiny::selectInput()
.
Usage
choices_labeled(choices, labels, subset = NULL, types = NULL)
Arguments
choices |
( |
labels |
( |
subset |
a vector that is a subset of |
types |
vector containing the types of the columns. |
Details
If either choices
or labels
are factors, they are coerced to character.
Duplicated elements from choices
get removed.
Value
A named character vector.
[Package teal.slice version 0.6.0 Index]