[R] Stack overflow in R 2.10.0 with sub() and gsub() SOLVED!

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Thu Oct 29 01:30:05 CET 2009

Thanks to Dr. Ripley and Dr. Murdoch for the workaround
and the solution to the problem with sub() and gsub() memory problem.

Now, with the perl=TRUE option added it works perfect (with the full

alumnos$AL_NUME_ID<-gsub("(^ +)|( +$)","",alumnos$AL_NUME_ID,perl=TRUE)

I am going to test it with the patched version, that seems to work
without this addition, but acording to Dr. Ripley with
this option it is faster even in the patched version.

Thank you very much for your help.


More information about the R-help mailing list