[R] starting with a capital letter

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Sep 16 10:01:40 CEST 2007


Charles C. Berry wrote:
> Two corrections to my previous posting.
>   
>> ......
>
> Not!
>
>  	res <- gregexpr( "\\<[[:upper:]]" , my.charvec )
>
> will do just fine.
>   
Thanks for sorting this out, Chuck. Let me just highlight the fact that
[[:upper:]]
is much superior to [A-Z] for those of us using languages with non-ASCII 
characters in them.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list