json_pack_join {dm} | R Documentation |
JSON pack join
Description
A wrapper around pack_join()
which stores the joined data into a JSON column.
json_pack_join()
returns all rows and columns in x
with a new JSON columns that contains all packed matches from y
.
Usage
json_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
Examples
df1 <- tibble::tibble(x = 1:3)
df2 <- tibble::tibble(x = c(1, 1, 2), y = c("first", "second", "third"))
df3 <- json_pack_join(df1, df2)
df3
df3$df2