On Wed, 15 Sep 2010 15:15:27 +0200,
Uwe Ligges <[email protected]> wrote:
> Why? It is still accessible as a list, even with S4 object, at least
> for the cases I tried.
R> wL <- with(warpbreaks, by(warpbreaks[, 1:2], tension, summary))
R> setClass("Whatever",
+ representation=representation(A="list"))
[1] "Whatever"
R> new("Whatever", A=wL)
Error in validObject(.Object) :
invalid class "Whatever" object: invalid object for slot "A" in class
"Whatever": got class "by", should be or extend class "list"
--
Seb
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel