[R] Adding two data.frames.

2010-09-29 Thread Joel

Hi

I have two data frames that contains the same sort of data and I want do add
them together to get one big data frame, anyone know how to do that?

ex:
data.frame1
A B C
1 2 3
4 5 6 
7 8 9

and
data.frame2
A B C
9 8 7
6 5 4
3 2 1

Would then become one big set:

data.frame3
A B C
1 2 3
4 5 6
7 8 9
9 8 7
6 5 4
3 2 1


Thx for your help

//Joel
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718771.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Adding two data.frames.

2010-09-29 Thread Ivan Calandra
  Hi,

Take a look at rbind()

HTH,
Ivan

Le 9/29/2010 13:24, Joel a écrit :
 Hi

 I have two data frames that contains the same sort of data and I want do add
 them together to get one big data frame, anyone know how to do that?

 ex:
 data.frame1
 A B C
 1 2 3
 4 5 6
 7 8 9

 and
 data.frame2
 A B C
 9 8 7
 6 5 4
 3 2 1

 Would then become one big set:

 data.frame3
 A B C
 1 2 3
 4 5 6
 7 8 9
 9 8 7
 6 5 4
 3 2 1


 Thx for your help

 //Joel

-- 
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calan...@uni-hamburg.de

**
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Adding two data.frames.

2010-09-29 Thread Joel

Thx for the help works very well for me.
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Adding-two-data-frames-tp2718771p2718901.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.