Allows user to interactively select values from those available to filter their data by.
filter_interactive(
dat,
column_name,
column_value = NULL,
interactive = TRUE,
allow_multiple_selection = TRUE
)data.frame. A tibble or named list of tibbles (input as list())
returned from convert_output.
String. Name of the column to allow interactive filtering for.
String. Value of the column to filter by. If NULL, interactive selection will be enabled.
Default: NULL
Logical. indicate whether the environment is interactive.
Default: TRUE
Logical. Whether to allow the selection of multiple inputs.
Default: FALSE
List. filtered data.frame (plot_data) and selected option(selected).
if (FALSE) { # \dontrun{
filter_interactive(
dat = example_dat,
column_name = "model",
column_value = NULL,
allow_multiple_selection = TRUE # allow selecting multiple models
)
} # }