Re: [R] a complicated merging task

2009-07-20 Thread Sarah Goslee
Why not merge on ID, then delete the rows that don't match your second criterion? Seems easier than trying to do it in one step. Sarah On Mon, Jul 20, 2009 at 3:07 PM, tathta wrote: > > I would like to merge two dataframes, but i have a condition that needs to > used for the merge as well. > > th

[R] a complicated merging task

2009-07-20 Thread tathta
I would like to merge two dataframes, but i have a condition that needs to used for the merge as well. the rows (observations) in each dataframe are identified by each person's ID and by the date of the observation. Basically I would like it to be merged based on both ID (exact match) and date