Re: [R] merging two datasets

2010-03-11 Thread Ivan Calandra
Hi, What about merge(table1, table2)? See ?merge for more details Ivan Le 3/11/2010 10:15, n.via...@libero.it a écrit : I have some probems in merging the following datasets: table1 Paese Continente Italia EU franciaEU ge

[R] merging two datasets

2010-03-11 Thread n.via...@libero.it
I have some probems in merging the following datasets: table1 Paese Continente Italia EU franciaEU germania EU stati uniti AM canadaAM table2 Continente

Re: [R] Merging two datasets

2008-08-06 Thread Shreyasee Pradhan
TED]> wrote: > You need to do the merge and then sum in a separate operation > > I think you may have to rename the columns. See ?names > > > --- On Wed, 8/6/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > From: [EMAIL PROTECTED] <[EMAIL PROTECTE

Re: [R] Merging two datasets

2008-08-06 Thread John Kane
You need to do the merge and then sum in a separate operation I think you may have to rename the columns. See ?names --- On Wed, 8/6/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Subject: Re: [R] Merging two datase

Re: [R] Merging two datasets

2008-08-06 Thread rkevinburton
I looked at 'merge'. What if df1 and df2 are data.frames and I want to merge on on column and sum on another? Say df1 and df2 are data.frames with columns 'ID1', 'ID2', 'ID3', and 'Qty'. I want to 'merge' the data frames (and produce a new data.frame) if there is a matching 'ID2' in each data.fr

Re: [R] Merging two datasets

2008-08-06 Thread Henrique Dallazuanna
Try using: merge(df1, df2, all = TRUE) On Wed, Aug 6, 2008 at 11:15 AM, Shreyasee Pradhan <[EMAIL PROTECTED]> wrote: > I am facing a problem in merging two datasets. > I have given codes to the names which are common in both the datasets and > also to those which are uncommon. > When I gave gave

[R] Merging two datasets

2008-08-06 Thread Shreyasee Pradhan
I am facing a problem in merging two datasets. I have given codes to the names which are common in both the datasets and also to those which are uncommon. When I gave gave the following command merge(df1,df2) only those rows and columns were merged which were having common codes. When I viewed t