The initial state of a data frame, where each row represents a filter.
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
add_filter()
,edit_filter()
andremove_filter()
to manipulate the filters table.apply_filters()
to apply the filters table you have created to some data.