A wrapper function for the base function
merge. Inherits all arguments from
merge and provides an additional flag column labeled
smerge also outputs counts of matched and unmatched observations from each data frame. Refer to
merge for argument descriptions.
1 2 3
smerge defaults to
all = TRUE. The numeric codes for the merge column are also different from those used in STATA. -1 and 1 denote unmatched observations from
y respectively. 0 denotes a matched observation
A data frame formed by merging
y with an additional column labeled
Sven Halvorson ([email protected])
1 2 3 4 5 6 7 8 9 10 11 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.