Merge a Lexis object with a data frame
Merge additional variables from a data frame into a Lexis object.
## S3 method for class 'Lexis' merge(x, y, id, by, ...)
x |
an object of class |
y |
a data frame |
id |
the name of the variable in |
by |
if matching is not done by id, a vector of variable names
common to both |
... |
optional arguments to be passed to |
A Lexis object can be considered as an augmented data frame
in which some variables are time-dependent variables representing
follow-up. The Lexis function produces a minimal object
containing only these time-dependent variables. Additional variables
may be added to a Lexis object using the merge method.
A Lexis object with additional columns taken from the
merged data frame.
The variable given as the by.y argument must not contain
any duplicate values in the data frame y.
Martyn Plummer
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.