nest_nest_join | R Documentation |
nest_nest_join()
returns all rows and columns in .nest_data
with a new
nested-df column that contains all matches from y
. When there is no match,
the list contains a 0-row tibble.
nest_nest_join( .data, .nest_data, y, by = NULL, copy = FALSE, keep = FALSE, name = NULL, ... )
.data |
A data frame, data frame extension (e.g., a tibble), or a lazy data frame (e.g., from dbplyr or dtplyr). |
.nest_data |
A list-column containing data frames |
y |
A data frame, data frame extension (e.g., a tibble), or a lazy data frame (e.g., from dbplyr or dtplyr). |
by |
A character vector of variables to join by or a join specification
created with If To join on different variables between the objects in To join by multiple variables, use a vector with length >1. For example,
To perform a cross-join, generating all combinations of each object in
|
copy |
If |
keep |
Should the join keys from both |
name |
The name of the list column nesting joins create. If |
... |
One or more unquoted expressions separated by commas. Variable
names can be used if they were positions in the data frame, so expressions
like |
nest_nest_join()
is largely a wrapper around dplyr::nest_join()
and
maintains the functionality of nest_join()
within east nested data frame.
For more information on nest_join()
, please refer to the documentation in
dplyr
.
An object of the same type as .data
. Each object in the column .nest_data
will also be of the same type as the input.
Other joins:
nest-filter-joins
,
nest-mutate-joins
gm_nest <- gapminder::gapminder %>% tidyr::nest(country_data = -continent) gm_codes <- gapminder::country_codes gm_nest %>% nest_nest_join(country_data, gm_codes, by = "country")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.