[R] Matrix manipulation

Ko-Kang Kevin Wang ko-kang at xtra.co.nz
Wed May 23 12:56:43 CEST 2001


Suppose I have a matrix with, say 12 columns.

I would like to extract out column 2 ~ 8 and 11 ~ 12 then combine them together.

I tried with success to extract out the columns by doing:
 foo <- test[,2:8]
 goo <- test[,11:12]

However then I am having trouble combining foo and goo.

Helps are appreciated!



Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub (SDK)
University of Auckland
New Zealand

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