intersect.duckplyr_df | R Documentation |
This is a method for the dplyr::intersect()
generic.
See "Fallbacks" section for differences in implementation.
intersect(x, y)
finds all rows in both x
and y
.
## S3 method for class 'duckplyr_df'
intersect(x, y, ...)
x , y |
Pair of compatible data frames. A pair of data frames is compatible if they have the same column names (possibly in different orders) and compatible types. |
... |
These dots are for future extensions and must be empty. |
There is no DuckDB translation in intersect.duckplyr_df()
if column names are duplicated in one of the tables,
if column names are different in both tables.
These features fall back to dplyr::intersect()
, see vignette("fallback")
for details.
dplyr::intersect()
df1 <- duckdb_tibble(x = 1:3)
df2 <- duckdb_tibble(x = 3:5)
intersect(df1, df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.