right_join.duckplyr_df | R Documentation |
This is a method for the dplyr::right_join()
generic.
See "Fallbacks" section for differences in implementation.
A right_join()
keeps all observations in y
.
## S3 method for class 'duckplyr_df'
right_join(
x,
y,
by = NULL,
copy = FALSE,
suffix = c(".x", ".y"),
...,
keep = NULL,
na_matches = c("na", "never"),
multiple = "all",
unmatched = "drop",
relationship = NULL
)
x , y |
A pair of data frames, data frame extensions (e.g. a tibble), or lazy data frames (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
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 |
copy |
If |
suffix |
If there are non-joined duplicate variables in |
... |
Other parameters passed onto methods. |
keep |
Should the join keys from both
|
na_matches |
Should two
|
multiple |
Handling of rows in
|
unmatched |
How should unmatched keys that would result in dropped rows be handled?
|
relationship |
Handling of the expected relationship between the keys of
|
There is no DuckDB translation in right_join.duckplyr_df()
for an implicit cross join,
for a value of the multiple
argument that isn't the default "all"
.
for a value of the unmatched
argument that isn't the default "drop"
.
These features fall back to dplyr::right_join()
, see vignette("fallback")
for details.
dplyr::right_join()
library(duckplyr)
right_join(band_members, band_instruments)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.