<choice>:<label>
" type of namesThis is often useful for as it marks up the drop-down boxes for shiny::selectInput()
.
choices_labeled(choices, labels, subset = NULL, types = NULL)
A named character vector.
(character
or numeric
or logical
) vector
(character
) vector containing labels to be applied to choices
. If NA
then
"Label Missing" will be used.
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.
vector containing the types of the columns.
If either choices
or labels
are factors, they are coerced to character.
Duplicated elements from choices
get removed.