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
)

Arguments

dat

data.frame. A tibble or named list of tibbles (input as list()) returned from convert_output.

column_name

String. Name of the column to allow interactive filtering for.

column_value

String. Value of the column to filter by. If NULL, interactive selection will be enabled.

Default: NULL

interactive

Logical. indicate whether the environment is interactive.

Default: TRUE

allow_multiple_selection

Logical. Whether to allow the selection of multiple inputs.

Default: FALSE

Value

List. filtered data.frame (plot_data) and selected option(selected).

Examples

if (FALSE) { # \dontrun{
filter_interactive(
  dat = example_dat,
  column_name = "model",
  column_value = NULL,
  allow_multiple_selection = TRUE # allow selecting multiple models
)
} # }