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

[R] merging multiple data frames

2010-09-23 Thread rasanpreet
hi guys i have multiple data frames which i want to merge. there are four of them..eg pdf SampleID UVDose_J RepairHours Day_0 Day_45 Day_90 1SDM001 1.0 3 485.612 465.142 490.873 2SDM001 1.0 3 503.658 457.863 487.783 3SDM001 1.0 2 533.1

[R] merging multiple data frames based on X and Y coordinates

2009-04-17 Thread ddepew
Hi all, I'm a little stumped on this. I have 5 data frames with continuous GPS coordinates at 5 to 10 m spacing. Due to the different GPS units used, data collected within one to two sec apart have coordinates that differ by 3 to 5 m on average. I'd like to aggrate the data frames relative t

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 <

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

2008-04-29 Thread stephen sefick
merge can only merge two objects at a time- I would like to merge more than two objects at a time. s.d <- structure(list(RiverMile = c(202L, 198L, 190L, 185L, 179L, 148L, 119L, 61L)), .Names = "RiverMile", row.names = c(NA, -8L), class = "data.frame") #s.d is all of the river miles that can occur