[R] character vector -> numeric matrix ??

kathie kathryn.lord2000 at gmail.com
Tue Jul 28 19:13:41 CEST 2009


Dear R users... 

I'd like to change this character vector, "zz",  

zz <- c("12","56","89")

to the following numeric matrix.

     [,1] [,2]
[1,]    1    2
[2,]    5    6
[3,]    8    9


Actually, "zz" vector has a long length.

Any comments will be greatly appreciated.

Kathryn Lord

-- 
View this message in context: http://www.nabble.com/character-vector--%3E-numeric-matrix----tp24703927p24703927.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list