[R] Updating R-code in own package

2009-09-18 Thread Katrine Damgaard
Hey everybody! We have created our own package, and need to do some corrections in the R-code of one of the function included in the package. How can I do that. I have read a manual how to create an R package, but I can't find anything about updating R-code in the package. Best regards, Katrine

[R] using perl regular expression

2009-02-24 Thread Katrine Damgaard
Hello everybody! I'm using Perl regular Expression for find pattern in my data set. The pattern is: NaQxy, where a=E, F, G or H and xy != 29. I have tried this: pattern <- "^N[E-H]Q[0-9]{2,2}" index <- grep(pattern, X, perl=T) #where X is my vector But the problem is the xy should not be 29.

[R] Linux 64-bit server crashes on large dataset

2009-01-21 Thread Katrine Damgaard
Hello everybody! We have a problem with a linux server that crashes when we try to read large datasets in R. The R code is as followed: komplett <- read.spss("komplett2003aar.sav", to.data.frame =TRUE, reencode ="Latin1") The information about the linux server is: Linux version 2.6.24-19-gene