merge
does for data.frame
s, this function
takes two datasets, matches rows based on a specified key variable, and
adds columns from one to the other.
joinDatasets(x, y, by = intersect(names(x), names(y)), by.x = by, by.y = by, all = FALSE, all.x = TRUE, all.y = FALSE, copy = TRUE)
extendDataset(x, y, by = intersect(names(x), names(y)), by.x = by, by.y = by, all = FALSE, all.x = TRUE, all.y = FALSE, ...)
"merge"(x, y, by = intersect(names(x), names(y)), by.x = by, by.y = by, all = FALSE, all.x = TRUE, all.y = FALSE, ...)
by.x
and
by.y
by alias if the key variables have the same alias in both
datasets.x
on which to join, or the alias
(following crunch.namekey.dataset
) of a variable. Must be type
numeric or text and have all unique, non-missing values.y
on which to join, or the alias
(following crunch.namekey.dataset
) of a variable. Must be type
numeric or text and have all unique, non-missing values.FALSE
is currently supported.TRUE
is currently supported.FALSE
is currently supported.TRUE
, which means materialized. Virtual joins are experimental and
not advised.x
extended by the columns of y
, matched on the "by"
variables.