filter2: Return rows with matching conditions and print diagnostics

Description Usage Arguments Value Examples

Description

At this point, 'filter2' only works on data.frame objects, rather than the full set of 'dplyr::filter'-able objects.

Usage

1
filter2(.data, ..., .verbose = TRUE)

Arguments

.data

A tbl. All main verbs are S3 generics and provide methods for tbl_df(), dtplyr::tbl_dt() and dbplyr::tbl_dbi().

...

Logical predicates defined in terms of the variables in .data. Multiple conditions are combined with &. Only rows where the condition evaluates to TRUE are kept.

These arguments are automatically quoted and evaluated in the context of the data frame. They support unquoting and splicing. See vignette("programming") for an introduction to these concepts.

.verbose

print diagnostics? Defaults to TRUE

Value

a data frame

Examples

1
2
filter2(dplyr::starwars, gender == "female", height < 170)
filter2(dplyr::starwars, gender == "female" | height < 170)

akgold/dply2 documentation built on May 30, 2019, 2:07 p.m.