Skip to contents

The initial state of a data frame, where each row represents a filter.

Usage

filters_init

Format

A tibble with 0 rows and 5 variables

type

The filter type, either "character" or "numeric"

colname

The name of the column to filter

pattern

For character filters, the pattern to match to the column value

min

For numeric filters, the minimum value of the column

max

For numeric filters, the maximum value of the column

Details

Character filters work on columns that contain strings (sequences of letters). For each row, if the value of the column contains the pattern of the filter, it is kept in the filtered data frame. Otherwise, the row is filtered out.

For example, if the pattern was "at", and the column values were "cat", "match" and "bit", then the first two values would be kept in the filtered data frame since they contain the pattern.

Numeric filters work on columns containing numbers. For each row, if the column value is between the min value and the max value, it is kept in the filtered data frame. Otherwise, it is removed.

See also

Examples

filters_init
#> # A tibble: 0 × 5
#> # … with 5 variables: type <chr>, colname <chr>, pattern <chr>, min <dbl>,
#> #   max <dbl>