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
I have some probems in merging the following datasets:
table1
Paese Continente
Italia EU
franciaEU
germania EU
stati uniti AM
canadaAM
table2
Continente
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
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
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
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
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
7 matches
Mail list logo