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

Tyler Smith tyler.smith at mail.mcgill.ca
Wed Apr 27 16:21:43 CEST 2005


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




More information about the R-help mailing list