View source: R/coalesce_join.R
coalesce_join | R Documentation |
A join that adds information from matching columns from y
to x
. If the
value in y
is NA
, then the value from x
will be used. Thus, all new
information can be used to overwrite the old information.
coalesce_join(
x,
y,
by = NULL,
suffix = c(".x", ".y"),
join = dplyr::full_join,
...
)
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 |
suffix |
If there are non-joined duplicate variables in |
join |
The dplyr function, or function from any other package, that
should be used to join |
... |
Any additional arguments you wish to supply to the function
specified in |
Edward Visel with some changes from Kelli F. Johnson.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.