[R] How do you combine smaller tables into a larger one
Art Salwin
salwin at mitretek.org
Tue May 16 21:43:14 CEST 2000
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 at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list