filter.ir {ir}R Documentation

Subset rows in ir objects using column values

Description

Subset rows in ir objects using column values

Usage

filter.ir(.data, ..., .preserve = FALSE)

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.

Value

.data with filtered rows.

Source

dplyr::filter()

See Also

Other tidyverse: arrange.ir(), distinct.ir(), extract.ir(), filter-joins, group_by, mutate-joins, mutate, nest, pivot_longer.ir(), pivot_wider.ir(), rename, rowwise.ir(), select.ir(), separate.ir(), separate_rows.ir(), slice, summarize, unite.ir()

Examples

## filter
dplyr::filter(ir_sample_data, sample_type == "office paper")



[Package ir version 0.2.1 Index]