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.

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 > #_