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.
______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.