[R] create unique ID for each group

Chris Stubben stubben at lanl.gov
Tue May 7 19:57:53 CEST 2013


 > I want to merge dat1 and dat2 based on "ID" in order

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



-- 

Chris Stubben

Los Alamos National Lab
Bioscience Division
MS M888
Los Alamos, NM 87545



More information about the R-help mailing list