[R] How do you combine smaller tables into a larger one

About this list Date view Thread view Subject view Author view Other groups

Subject: [R] How do you combine smaller tables into a larger one
From: Art Salwin (salwin@mitretek.org)
Date: Wed 17 May 2000 - 05:43:14 EST


Message-ID: <3921A4D2.200CA45A@mitretek.org>

I have a total of n tables, each 3 rows by 4 columns.
How can they be combined into one large table of
3*n rows by 4 columns? We want each of the smaller tables
to
be added "below" one another. Simple example for n=2:

TableOne:
  1 2 3 4
  5 6 7 8
  9 10 11 12

TableTwo:
 51 52 53 54
 55 56 57 58
 59 60 61 62

Desired result:

  1 2 3 4
  5 6 7 8
  9 10 11 12
 51 52 53 54
 55 56 57 58
 59 60 61 62

Essentially, we want to add rows to a matrix, when the
"natural"
behavior of R is to add columns. Does this imply that the
solution
would somehow involve the t() function?

-- 
Art Salwin
salwin@mitretek.org
(202) 863-2985
(202) 863-2988 (fax)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:19 EST