choices_selected objects with interactions into their component variablesR/utils.R
split_choices.RdSplit choices_selected objects with interactions into
their component variables
split_choices(x)a teal.transform::choices_selected() object.
uses the regex \\*|: to perform the split.
split_choices(choices_selected(choices = c("x:y", "a*b"), selected = all_choices()))
#> $choices
#> [1] "x" "y" "a" "b"
#>
#> $selected
#> [1] "x" "y" "a" "b"
#>
#> $fixed
#> [1] FALSE
#>
#> attr(,"class")
#> [1] "choices_selected"