choices_labeled
objectReturns a choices_labeled
object
data_choices_labeled(
data,
choices,
varlabels = teal.data::col_labels(data, fill = TRUE),
keys = character(0)
)
character(0)
if choices are empty; a choices_labeled
object otherwise
(data.frame
or DFrame
or list
)
where labels can be taken from in case when varlabels
is not specified.
data
must be specified if varlabels
is not specified.
(character
)
the vector of chosen variables
(character
)
the labels of variables in data
(character
)
the names of the key columns in data