Skip to content
Prev 323124 / 398502 Next

create unique ID for each group

Have you tried merge(dat1, dat2) ?

If ID is the common column (and no others), then that should be all you 
need to join (see ?merge).  And then order if needed.

Chris