Delete a filter for a data frame, by removing a row from a data frame, where each row represents a filter.
Arguments
- filters
A data frame of filters. See filters_init.
- x
A number specifying the filter number to remove (indexed at 1).
See also
filters_init for the filters table.
add_filter()
andedit_filter()
to further edit the filters table.apply_filters()
to apply the filters you have created to your data.
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>