| merge | R Documentation |
Merge two tables using shared keys.
merge(
x,
y,
by = NULL,
all = FALSE,
all.x = all,
all.y = all,
sort = FALSE,
suffixes = c(".x", ".y")
)
x, y |
Data frames or data tables to merge. |
by |
Optional character vector of join columns. |
all, all.x, all.y |
Controls for keeping unmatched rows. |
sort |
Whether to sort the result. |
suffixes |
Suffixes used for overlapping column names. |
A basetable containing the merged rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.