[R] regular expression question

From: <markleeds_at_verizon.net>
Date: Mon 12 Jun 2006 - 05:25:53 EST

I am very much a novice with regular expressions and I have spent a decent amount of time trying to do the following and I can't get it.

i have variables that are of type character but they have number characters at the end. for example :


I want a command that gives me just gives me the letter characters for each one.
the letter characters always start first and then the number characters come second and it never flips back to letter characters once the number characters start. i am using R-2.20 on windows Xp. Thanks. substring doesn't work because the length of the letter characters can vary.

always occur first with the numbers starting

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jun 12 05:38:30 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 12 Jun 2006 - 14:12:50 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.