On Fri, Jul 16, 2010 at 1:59 PM, Davis, Brian wrote:
> I have a text processing problem I'm hoping someone can help me solve. This
> issue it this.
>
> I have a character string in which I need to delete a variable number of
> characters from the string. The string itself contains the number
Hi Davis,
Please try ??regex
gsub("(\\-|\\+)([0-9]+)(\\w*)(\\w)", replacement="\\4", x)
-
A R learner.
--
View this message in context:
http://r.789695.n4.nabble.com/Deleting-a-variable-number-of-characters-from-a-string-tp2291754p2291797.html
Sent from the R help mailing list archive at
I have a text processing problem I'm hoping someone can help me solve. This
issue it this.
I have a character string in which I need to delete a variable number of
characters from the string. The string itself contains the number of
characters to be deleted. The number of characters to be d
3 matches
Mail list logo