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

Re: [R] assignment functions with inherited class error

2010-08-11 Thread Martin Morgan
On 08/11/2010 04:42 AM, egc wrote: # 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