Description Usage Arguments Details Value Author(s) References See Also Examples
Merge Two Data Sets Without Altering Material from the Left Argument.
1 | stableMerge(x, y)
|
x |
the main data.frame |
y |
a second data.frame containing related information |
merge
is unpredictable, because it can add, drop, and
reorder rows, as well as reorder columns and recreate row names.
stableMerge
expects a primary data.frame and
a secondary data.frame, and performs a ‘stable’ left join (all.x=TRUE
,
all.y=FALSE
). Absence of extra arguments is by design, for integrity.
Keys are defined by common columns, and are repeatable in the primary,
but must be unique in the secondary data.frame. New columns in the
secondary data.frame are appended to the primary, supplying secondary information
by key match. No rows are added, or dropped, row/column order is
unaffected, and row names are preserved.
A dataframe with as many rows as nrow(x)
but possibly more columns.
Tim Bergsma
http://metrumrg.googlecode.com
merge
1 2 | #a nonsense example
stableMerge(Theoph,BOD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.