[R] Splitting an array into two - alternate columns

Phil Rhoades philr at mail.austasia.net
Fri Nov 24 01:46:37 CET 2000


I want to split an array (A1) into two arrays using alternate columns eg

A2 would consist of:

A1[,1], A1[,3], A1[,5], . .

A3 would consist of:

A1[,2], A1[,4], A1[,6], . .

Anyone got a nice method?

Thanks,

Phil.
-
Philip Rhoades

Pricom Pty Limited  (ACN  003 252 275)
GPO Box 3411
Sydney NSW	2001
Australia
Mobile:  +61:0411-185-652
Fax:  +61:2:8923-5363
E-mail:  philr at mail.austasia.net

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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