[R] How to add some of data in the first place dataset

From: Tyler Smith <tyler.smith_at_mail.mcgill.ca>
Date: Thu 28 Apr 2005 - 00:21:43 EST


Try this:

x<- matrix(1:12, nrow = 4, byrow = T)
y <- matrix (13:24, nrow=4, by.row=T)

To add the rows of y before the rows of x:

rbind(y,x)

-- 
Tyler Smith

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Apr 28 00:27:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:27 EST