link | R Documentation |
Use the selected pairs to generate a linked data set
link(
pairs,
selection = NULL,
all = FALSE,
all_x = all,
all_y = all,
x = attr(pairs, "x"),
y = attr(pairs, "y"),
suffixes = c(".x", ".y"),
keep_from_pairs = c(".x", ".y")
)
pairs |
a |
selection |
a logical variable with the same length as |
all |
return all records from |
all_x |
return all records from |
all_y |
return all records from |
x |
the first data set; when missing |
y |
the second data set; when missing |
suffixes |
a character vector of length 2 specifying the suffixes to be used for making unique the names of columns in the result. |
keep_from_pairs |
character vector with names of variables in |
Uses the selected pairs to link the two data sets to each other. Renames variables that are in both data sets.
Returns a data.table
containing records from x
and y
and
pairs
. Columns that occur both in x
and y
gain a suffix
indicating from which data set they are.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.