R/utils.R
cs_to_des_filter.RdConvert choices_selected to data_extract_spec with only filter_spec
cs_to_des_filter(
cs,
dataname,
multiple = FALSE,
include_vars = FALSE,
label = "Filter by"
)(choices_selected)
object to be transformed. See teal.transform::choices_selected() for details.
(character)
name of the data
(logical)
Whether multiple values shall be allowed in the
shiny shiny::selectInput().
(flag)
whether to include the filter variables as fixed selection
in the result. This can be useful for preserving for reuse in rtables code e.g.
(character)
Label to print over the selection field. For no label, set to NULL.