filter.ir: Subset rows in ir objects using column values
Description
Subset rows in ir objects using column values
Usage
filter.ir(.data, ..., .preserve = FALSE)
Value
.data with filtered rows.
Arguments
.data
An object of class ir.
...
<data-masking> Expressions that
return a logical value, and are defined in terms of the variables in
.data. If multiple expressions are included, they are combined with the
& operator. Only rows for which all conditions evaluate to TRUE are
kept.
.preserve
Relevant when the .data input is grouped.
If .preserve = FALSE (the default), the grouping structure
is recalculated based on the resulting data, otherwise the grouping is kept as is.