Re: [R] Merge and join data

2010-01-29 Thread Sean M. Lucey
p-boun...@r-project.org] On Behalf Of Sean M. Lucey Sent: Thursday, 21 January 2010 9:20 a.m. To: r-help@r-project.org Subject: [R] Merge and join data Hi, I'm looking to combine two data frames. Several of the columns are in common while the others need to be summed up. The apply functi

Re: [R] Merge and join data

2010-01-20 Thread GlenB
Specifically, your setup of the data makes all the columns factors, so to make Peter's code work you need to make the relevant columns numeric first. -- View this message in context: http://n4.nabble.com/Merge-and-join-data-tp1018729p1025642.html Sent from the R help mailing list archive at Nabb

Re: [R] Merge and join data

2010-01-20 Thread Peter Alspach
. Lucey > Sent: Thursday, 21 January 2010 9:20 a.m. > To: r-help@r-project.org > Subject: [R] Merge and join data > > Hi, > > I'm looking to combine two data frames. Several of the > columns are in common while the others need to be summed up. > The apply funct

[R] Merge and join data

2010-01-20 Thread Sean M. Lucey
Hi, I'm looking to combine two data frames. Several of the columns are in common while the others need to be summed up. The apply functions and the merge functions don't seem to be working. I've included a basic example of what I'm trying to do below. Thanks! Sean data.frame1<-as.data.