| intersect.dtplyr_step {dtplyr} | R Documentation |
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().
## 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, ...)
x, y |
A pair of |
... |
Ignored |
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)