Skip to content
Prev 37758 / 63424 Next

value returned by by()

On Wed, 15 Sep 2010 15:15:27 +0200,
Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:

            
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"
Message-ID: <87aanj6sqb.fsf@kolob.sebmags.homelinux.org>
In-Reply-To: <4C90C6EF.6030200@statistik.tu-dortmund.de> (Uwe Ligges's message of "Wed, 15 Sep 2010 15:15:27 +0200")