filter | R Documentation |
This function applies a CrunchLogicalExpression
filter to a
CrunchDataset
. It's a "tidy" way of doing ds[ds$var == val,]
.
## S3 method for class 'CrunchDataset'
filter(.data, ..., .preserve = FALSE)
.data |
A |
... |
filter expressions |
.preserve |
Relevant when the |
.data
with the filter expressions applied.
## Not run:
ds %>%
select(cyl, gear) %>%
filter(cyl > 4) %>%
collect()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.