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
database)!
alumnos$AL_NUME_ID<-gsub("(^ +)|( +$)","",alumnos$AL_NUME_ID,perl=TRUE)
I am going to test
El mar, 27-10-2009 a las 10:47 -0700, Phil Spector escribió:
> What happens if you type
>
> Sys.setlocale('LC_ALL','C')
>
> before using gsub or grep?
When I do that, R hangs and don't show any message.
>
> - Phil Spector
>
Thank you very much for your interest.
I make this:
x <- as.character(alumnos$AL_NUME_ID)
x <- x[-seq_len(length(x)/2)]
save(x, file="x.RData")
I exit form R, and then restart R and I make this:
load("x.RData")
y <- gsub("(^ +)|( +$)","",x)
It shows me:
Error en gsub("(^ +)|( +$)", "", x) :
On 10/27/2009 1:05 PM, Kenneth Roy Cabrera Torres wrote:
Thank you very much for your interest.
I make this:
x <- as.character(alumnos$AL_NUME_ID)
x <- x[-seq_len(length(x)/2)]
save(x, file="x.RData")
I exit form R, and then restart R and I make this:
load("x.RData")
y <- gsub("(^ +)|( +$)",""
On 10/27/2009 10:46 AM, Kenneth Roy Cabrera Torres wrote:
Dr. Murdoch:
I am puzzled!
As you adviced me I do this:
x <- as.character(alumnos$AL_NUME_ID)
x <- x[-seq_len(length(x)/2)]
Please try the following. After doing the lines above, do
save(x, file="x.RData")
and exit from R. Then re
Dr. Murdoch:
I am puzzled!
As you adviced me I do this:
x <- as.character(alumnos$AL_NUME_ID)
x <- x[-seq_len(length(x)/2)]
y <- gsub("(^ +)|( +$)","",x)
And it fails,
But, trying to locate the problem I do:
x <- as.character(alumnos$AL_NUME_ID)
x <- x[-seq_len(length(x)/2)]
x <- x[seq_len(len
On 10/27/2009 8:15 AM, Kenneth Roy Cabrera Torres wrote:
Hi R developers:
Congratulations for the new R 2.10.0 version.
It is a huge effort! Thank you for your work and dedication.
I just want to ask how to make this "strip blank" function
to work again (it works on R.2.9.2).
alumnos$AL_NUME_
Hi R developers:
Congratulations for the new R 2.10.0 version.
It is a huge effort! Thank you for your work and dedication.
I just want to ask how to make this "strip blank" function
to work again (it works on R.2.9.2).
alumnos$AL_NUME_ID<-sub("(^ +)|( +$)","",alumnos$AL_NUME_ID),)
"alumnos" i
8 matches
Mail list logo