multiplyr (version 0.1.1)

filter: Filter data

Description

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

Usage

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

Value

Data frame

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").

See Also

Other row manipulations: arrange, distinct, group_by, slice

Examples

Run this code

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

Run the code above in your browser using DataCamp Workspace