# Selection with just one column allowed
select_spec(
choices = c("AVAL", "BMRKR1", "AGE"),
selected = c("AVAL"),
multiple = FALSE,
fixed = FALSE,
label = "Column"
)
# Selection with just multiple columns allowed
select_spec(
choices = c("AVAL", "BMRKR1", "AGE"),
selected = c("AVAL", "BMRKR1"),
multiple = TRUE,
fixed = FALSE,
label = "Columns"
)
# Selection without user access
select_spec(
choices = c("AVAL", "BMRKR1"),
selected = c("AVAL", "BMRKR1"),
multiple = TRUE,
fixed = TRUE,
label = "Columns"
)
# Delayed version
select_spec(
label = "Select variable:",
choices = variable_choices("ADSL", c("BMRKR1", "BMRKR2")),
selected = "BMRKR1",
multiple = FALSE,
fixed = FALSE
)
# delayed_choices passed to selected
select_spec(
label = "Select variable:",
choices = variable_choices("ADSL", c("BMRKR1", "BMRKR2")),
selected = all_choices()
)
# Both below objects are semantically the same
select_spec(choices = variable_choices("ADSL"), selected = variable_choices("ADSL"))
select_spec(choices = variable_choices("ADSL"), selected = all_choices())
Run the code above in your browser using DataLab