[R] Altering columns

RON70 ron_michael70 at yahoo.com
Thu Jun 18 22:14:33 CEST 2009


Hi,

Suppose I have following dataset :
mat <- matrix(rnorm(100), 50)

Now I want to put 2nd column in the place of 1st and 1st column in the place
of 2nd. Is there any "quick" way to do that?

Thanks and regards,

-- 
View this message in context: http://www.nabble.com/Altering-columns-tp24099597p24099597.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list