[R] merging lists within lists via time stamp

tomtomme langkamp at tomblog.de
Tue Aug 2 17:00:57 CEST 2011


>From multiple data.frames I created two lists, one with temperature, one with
gps data. With your help and lapply I managed to interpolate the timestamps
of gps and temperature data. Now I want to merge/join both lists via the
time-stamp, taking only times, where both lists have data. 
For the single data-frames that worked just fine with: 

both <- merge(gps,temp)

For the two lists of data.frames I first tried an lapply over both
lists...something like

both <- lapply(temp, gps, function(x){x <- merge....

Then I found "both<-merge.list(gps,temp)", but this doesn´t work either. It
just transfers the first list "gps" to both

Thanks for any hint, Thomas

--
View this message in context: http://r.789695.n4.nabble.com/merging-lists-within-lists-via-time-stamp-tp3712631p3712631.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list