Description Usage Arguments Value Examples
These joins will coerce key columns to a common atomic type.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | left_join2(
x,
y,
by = NULL,
coerce_on_conflict = c("character", "numeric"),
suffix = c(".x", ".y"),
...,
keep = FALSE
)
inner_join2(
x,
y,
by = NULL,
coerce_on_conflict = c("character", "numeric"),
suffix = c(".x", ".y"),
...,
keep = FALSE
)
right_join2(
x,
y,
by = NULL,
coerce_on_conflict = c("character", "numeric"),
suffix = c(".x", ".y"),
...,
keep = FALSE
)
full_join2(
x,
y,
by = NULL,
coerce_on_conflict = c("character", "numeric"),
suffix = c(".x", ".y"),
...,
keep = FALSE
)
|
x |
A data frame |
y |
A data frame |
by |
A character vector of variables to join by. Can be NULL. |
coerce_on_conflict |
Either 'character' or 'numeric'. |
suffix |
If there are non-joined duplicate variables in x and y, these suffixes will be added to the output to disambiguate them. Should be a character vector of length 2. |
... |
Other parameters passed on to methods |
keep |
Should the join keys from both x and y be preserved in the output? |
a data frame
1 2 3 | df1 <- data.frame(x = 1:10, b = 1:10, y = letters[1:10])
df2 <- data.frame(x = as.character(1:10), z = letters[11:20])
left_join2(df1, df2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.