Merges two datasets using either a left (keep all elements in current datasets and replace with missing if not present in new set), right (keep all elements in new dataset), outer (keep all observations in both datasets), or inner join (only keep elements in both datasets)
Usage
gvmerge(data, on, kind = "left", ...)
Arguments
data
dataset to merge in, either an R data frame, a csv file name, or a dta (Stata) file name.
on
a variable list to merge on with the form "var1 var2 var3" (or possibly unquoted if a single variable).
kind
one of "left", "right", "outer", or "inner" (default: "left")
...
extra options to pass to read.csv or read.dta (for old Stata files) or read.dta13 (for newer ones).