[R] From strings to numbers

Naira nanao at psb.ugent.be
Mon May 19 12:13:09 CEST 2008


Dear all,

I would like to know if there is an easy to transform a vector of strings to
a vector of integers.
Ex: 
("ab","ab","bb","cat","cat","ab") will be
(1, 1, 2, 3, 3, 1)

Thx,
Naira

-- 
View this message in context: http://www.nabble.com/From-strings-to-numbers-tp17315179p17315179.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list