Skip to contents

Delete a filter for a data frame, by removing a row from a data frame, where each row represents a filter.

Usage

remove_filter(filters, x)

Arguments

filters

A data frame of filters. See filters_init.

x

A number specifying the filter number to remove (indexed at 1).

Value

filters with one less row.

See also

Examples

data <- tibble::tibble(
  x = 1:10,
  y = "a"
)

filters <- add_filter(filters_init, "x", data)
remove_filter(filters, 1)
#> # A tibble: 0 × 5
#> # … with 5 variables: type <chr>, colname <chr>, pattern <chr>, min <dbl>,
#> #   max <dbl>