pack_join {dm} | R Documentation |
Pack Join
Description
pack_join()
returns all rows and columns in x
with a new packed column
that contains all matches from y
.
Usage
pack_join(x, y, by = NULL, ..., copy = FALSE, keep = FALSE, name = NULL)
## S3 method for class 'dm_zoomed'
pack_join(x, y, by = NULL, ..., copy = FALSE, keep = FALSE, name = NULL)
Arguments
x , y |
A pair of data frames or data frame extensions (e.g. a tibble). |
by |
A join specification created with If To join on different variables between To join by multiple variables, use a
For simple equality joins, you can alternatively specify a character vector
of variable names to join by. For example, To perform a cross-join, generating all combinations of |
... |
Other parameters passed onto methods. |
copy |
If |
keep |
Should the new list-column contain join keys? The default will preserve the join keys for inequality joins. |
name |
The name of the list-column created by the join. If |
See Also
dplyr::nest_join()
, tidyr::pack()
Examples
df1 <- tibble::tibble(x = 1:3)
df2 <- tibble::tibble(x = c(1, 1, 2), y = c("first", "second", "third"))
pack_join(df1, df2)