[R] cbind error with check.names

2013-07-23 Thread Fg Nu
Hello all, I posted a question about cbind and an error when specifying the check.names argument here: http://stackoverflow.com/questions/17810470/cbind-error-with-check-names I was advised to take this to R-devel, but before that, I'd like to get the opinions of people on this list. Thanks

[R] Building shared libraries in subdirectories

2013-06-17 Thread Fg Nu
Hi all, I tried SO for this, but got no response. Trying here in hope of better luck. -- I am trying to build an R package that uses some C code. I have a C library that is compiled into a

Re: [R] Matrix multiplication

2012-12-12 Thread Fg Nu
Try this install.packages("expm") library(expm) T = matrix(c( 0.8797 ,   0.0382  , 0.0527  , 0.0008,               0.0212 ,   0.8002  , 0.0041  , 0.0143,               0.0981 ,   0.0273  , 0.8802  , 0.0527,               0.0010 ,   0.1343  , 0.0630  , 0.9322),             nrow = 4, ncol = 4,byr

[R] R wildcards, sapply and as.factor

2012-11-14 Thread Fg Nu
I want to change the type to factor of all variables in a data frame whose names match a certain pattern. So here I am trying to change the type to factor of all variables whose name begins with namestub in the dataframe df. attach(df)sapply(grep(glob2rx("namestub*"),names(df)),as.factor) But thi

Re: [R] Trouble compiling package on Windows (64 bit)

2012-08-17 Thread Fg Nu
6 ERROR: compilation failed for package 'KernGPLM' * removing 'C:/programming/r/revolutions/R-2.14.2/library/KernGPLM' Any advice will be very useful. Thanks. - Original Message - From: Uwe Ligges To: Fg Nu Cc: "r-help@r-project.org" Sent: Friday, August 1

[R] Trouble compiling package on Windows (64 bit)

2012-08-17 Thread Fg Nu
I am trying to compile the R package "KernGPLM" found here: http://www.marlenemueller.de/KernGPLM/KernGPLM_0.65.tar.gz since the binary available is for R 2.4. but the compilation ends with the error message: *** arch-i386 ERROR: compilation failed for the package 'KernGPLM' Here is my session