Jorge Ivan Velez wrote:

Dear John,

Assuming that your information is in the list x, does

substr(x,1,2)

work for you?

HTH,

Jorge
Jorge,
i tried

split(rtt, substr(rtt,1,3))

and that worked also. (i didn't think to nest it when you first suggested it.) i just have to clean up the levels thing. thanks!!

now, i look into regex some...

john

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to