[R] drop a letter
Vladimir Eremeev
wl2776 at gmail.com
Wed May 16 11:14:34 CEST 2007
elyakhlifi mustapha wrote:
>
> hello,
> how can I do to drop C from this character "C325" ?
>
1. if C is always single and always first:
> substring("C325",2)
2. more generic solution, drops all letters
> sp<-unlist(strsplit("C325",split="[A-Z]"))
> sp<-sp[nchar(sp)>0]
> sp
--
View this message in context: http://www.nabble.com/drop-a-letter-tf3763392.html#a10638376
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list