Re: [R] duplicate data between two data frames according to row names

2012-07-18 Thread arun
Hi, You could use "merge", "join" etc. merge(DF3,DF2)  # station lat lon data #1   ST002  41   2    3 #2   ST003  42   3    7 library(plyr)  join(DF3,DF2,type="inner") Joining by: station #  station lat lon data #1   ST002  41   2    3 #2   ST003  42   3    7 #or join(DF3,DF2,type="right") Ho

Re: [R] duplicate data between two data frames according to row names

2012-07-18 Thread jeff6868
"merge" is enough for me, thanks! I was thinking about a loop, or a function like "grep", or maybe another function. I'll have to think easier next time! Thanks again! -- View this message in context: http://r.789695.n4.nabble.com/duplicate-data-between-two-data-frames-according-to-row-names-tp4

Re: [R] duplicate data between two data frames according to row names

2012-07-18 Thread Eik Vettorazzi
Hi Jeff, looks like a job for ?rbind and ?merge merge(rbind(DF1,DF2),DF3) hth Am 18.07.2012 10:21, schrieb jeff6868: > Hi everybody. > > I'll first explain my problem and what I'm trying to do. > Admit this example: > I'm working on 5 different weather stations. > I have first in one file 3 o