View source: R/joyn_workhorse.R
joyn_workhorse | R Documentation |
joyn
Always executes a full join.
joyn_workhorse(
x,
y,
by = intersect(names(x), names(y)),
sort = FALSE,
suffixes = getOption("joyn.suffixes"),
reportvar = getOption("joyn.reportvar")
)
x |
data object, "left" or "master" |
y |
data object, "right" or "using" |
by |
atomic character vector: key specifying join |
sort |
logical: sort the result by the columns in |
suffixes |
atomic character vector: give suffixes to columns common to both |
data object of same class as x
## Not run:
# Full join
library(data.table)
x1 = data.table(id = c(1L, 1L, 2L, 3L, NA_integer_),
t = c(1L, 2L, 1L, 2L, NA_integer_),
x = 11:15)
y1 = data.table(id = c(1,2, 4),
y = c(11L, 15L, 16))
joyn:::joyn_workhorse(x = x1, y=y1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.