[R] Flummoxed by gsub().

Rolf Turner r.turner at auckland.ac.nz
Wed Aug 23 11:32:53 CEST 2017


On 23/08/17 18:41, PIKAL Petr wrote:
> Hi Rolf
> 
> I am not at all an expert in regex but
> 
> gsub("[[:alpha:]]","",x)
> 
> Works as you expected. Do not ask me why.

Thanks Petr.  Stefan Evert's explanation clarified the issue.  Which I 
must say *needed* some clarification!

cheers,

Rolf

-- 
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-help mailing list