Re: [R] assignment functions with inherited class error

2010-08-13 Thread egc
it works! Thanks. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] assignment functions with inherited class error

2010-08-11 Thread egc
# Two test for a class like this: setClass("XXX", representation=representation( "matrix" ) ) i<-new("XXX"); m=matrix(); colnames(m)<-c("colA"); i...@.data=m; # >i # An object of class “XXX” # colA #[1,] NA # #First Test

[R] R newbie | sapply and FUN error

2010-05-20 Thread egc
Greetings - While I've used R a fair bit for basic statistical machinations, I've not used it for data manipulation - I've used SAS for 20+ years (and SAS real shines in data handling). So, I've started the process of trying to figure out 'how to do in R what I can do in my sleep in SAS' - specifi