ev_assign: Replicate a list of events into a data set
Description
Replicate a list of events into a data set
Usage
ev_assign(l, idata, evgroup, join = FALSE)
assign_ev(...)
Arguments
l
list of event objects.
idata
an idata set (one ID per row).
evgroup
the character name of the column in idata that specifies
event object to implement.
join
if TRUE, join idata to the data set before returning.
...
used to pass arguments from assign_ev().
to ev_assign().
Details
ev_assign() connects events in a list passed in as the l argument to
values in the data set identified in the evgroup argument. For making
assignments, the unique values in the evgroup column are first sorted so
that the first sorted unique value in evgroup is assigned to the first
event in l, the second sorted value in evgroup column is assigned to the
second event in l, and so on. This is a change from previous behavior,
which did not sort the unique values in evgroup prior to making the
assignments.