Re: [R] merging more than 2 data frames

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Tue, 12 Feb 2008 14:34:46 -0200

Try this:

data1 <- data.frame(Id=LETTERS[1:5], Value=sample(5))
data2 <- data.frame(Id=data1$Value, Value=c(10,20,30,40,50))
data3 <- data.frame(Id=data2$Value, Value=rnorm(5))

merge(merge(data1, data2, by.x="Value", by.y="Id"), data3, by.x="Value.1", by.y="Id")

On 12/02/2008, joseph <jdsandjd_at_yahoo.com> wrote:
> Hi
> merge() takes only 2 data frames. What can you do to it to make take more than two data frames? or is there another function that does that?
> Thanks
> joseph
>
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 12 Feb 2008 - 16:44:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Feb 2008 - 17:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive