Re: [R] merging multiple data frames

2010-09-23 Thread Steve Lianoglou
On Thu, Sep 23, 2010 at 12:18 PM, rasanpreet kaur suri wrote: > hi guys..thx for help > i have to perform a calculation > P-B/T-B > where P is the values in pdf and B is the values in bdf and T in tdf You have 69 rows in your pdf data.frame, and something like 20 rows in bdf and tdf, so my origin

Re: [R] merging multiple data frames

2010-09-23 Thread rasanpreet kaur suri
hi guys..thx for help i have to perform a calculation P-B/T-B where P is the values in pdf and B is the values in bdf and T in tdf On Thu, Sep 23, 2010 at 7:49 PM, Mike Rennie wrote: > First, you might want to start by generating a new column to identify your > 'pdf" and "bdf" or whatever once

Re: [R] merging multiple data frames

2010-09-23 Thread Mike Rennie
First, you might want to start by generating a new column to identify your 'pdf" and "bdf" or whatever once it's merged. For the merging, see ?merge But as someone's already pointed out, it's not clear what you are trying to merge by. Also, as your example calculations show, you don't need to m

Re: [R] merging multiple data frames

2010-09-23 Thread Steve Lianoglou
Hi, On Thu, Sep 23, 2010 at 9:04 AM, rasanpreet wrote: > > hi guys > i have multiple data frames which i want to  merge. > there are four of them..eg Can you provide a (correct) example of what you want your merged data.frame to look like? What column do you want to use in your data.frame to mer

Re: [R] merging multiple data frames with different numbers of rows

2008-04-29 Thread Gabor Grothendieck
It appears that these are time series (i.e. there is only one value of River Mile in any one data frame) so if that's right you would be better off representing them as time series. Using zoo: > library(zoo) > feb06.z <- zoo(feb06[,2], feb06[,1]) > may06.z <- zoo(may06[,2], may06[,1]) > jun06.z <