| intersect.dtplyr_step {dtplyr} | R Documentation |
Set operations
Description
These are methods for the dplyr generics intersect(), union(),
union_all(), and setdiff(). They are translated to
data.table::fintersect(), data.table::funion(), and
data.table::fsetdiff().
Usage
## S3 method for class 'dtplyr_step'
intersect(x, y, ...)
## S3 method for class 'dtplyr_step'
union(x, y, ...)
## S3 method for class 'dtplyr_step'
union_all(x, y, ...)
## S3 method for class 'dtplyr_step'
setdiff(x, y, ...)
Arguments
x, y |
A pair of |
... |
Ignored |
Examples
dt1 <- lazy_dt(data.frame(x = 1:4))
dt2 <- lazy_dt(data.frame(x = c(2, 4, 6)))
intersect(dt1, dt2)
union(dt1, dt2)
setdiff(dt1, dt2)
[Package dtplyr version 1.3.1 Index]