View source: R/json_nest_join.R
json_nest_join | R Documentation |
A wrapper around dplyr::nest_join()
which stores the joined data into a JSON column.
json_nest_join()
returns all rows and columns in x
with a new JSON columns that contains all nested matches from y
.
json_nest_join(x, y, by = NULL, ..., copy = FALSE, keep = FALSE, name = NULL)
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 |
dplyr::nest_join()
, json_pack_join()
df1 <- tibble::tibble(x = 1:3)
df2 <- tibble::tibble(x = c(1, 1, 2), y = c("first", "second", "third"))
df3 <- json_nest_join(df1, df2)
df3
df3$df2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.