filter: Filter data

Description Usage Arguments Details Value See Also Examples

Description

Select a subset of rows whose columns meet a set of criteria

Usage

1
2
3
filter(.self, ..., auto_compact = NULL)

filter_(.self, ..., .dots, auto_compact = NULL)

Arguments

.self

Data frame

...

Additional parameters

auto_compact

Compact data after operation

.dots

Workaround for non-standard evaluation

Details

This may be used to only include rows that match a particular set of criteria. For example, filter(x>10) would remove any rows from the data whose value in the x column is not greater than 10. Multiple filtering criteria may be combined with & or | (representing "and", "or").

Value

Data frame

See Also

Other row manipulations: arrange, distinct, group_by, slice

Examples

1
2
3
dat <- Multiplyr (x=1:100, y=rnorm(100))
dat %>% filter (x<50 & y>0)
dat %>% shutdown()

jeblundell/multiplyr documentation built on May 19, 2019, 12:39 a.m.