Skip to content
Prev 144783 / 398500 Next

From strings to numbers

Jim and Chuck,

Thanks a lot for your replies :)
I knew that there was a better way than the complex thing I was planning 
to apply :p (with a lot of for/while/apply arghhh)
I also remembered to use factor when my brain woke up ;)

I did something like unclass(factor(c("ab","ab","bb","cat","cat","ab"))) 
which is also doing the right job.
Thx a lot for your fast replies.

Naira
Jim Lemon wrote: