Re: [Rd] value returned by by()

2010-09-15 Thread Seb
On Wed, 15 Sep 2010 15:15:27 +0200, Uwe Ligges 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

Re: [Rd] value returned by by()

2010-09-15 Thread Uwe Ligges
On 15.09.2010 15:00, Seb wrote: On Wed, 15 Sep 2010 11:29:23 +0200, peter dalgaard wrote: On Sep 15, 2010, at 10:55 , Uwe Ligges wrote: On 14.09.2010 20:50, Seb wrote: On Tue, 14 Sep 2010 12:02:04 +0200, Uwe Ligges wrote: It returns a list with athe class attribut set to "by", just

Re: [Rd] value returned by by()

2010-09-15 Thread Seb
On Wed, 15 Sep 2010 11:29:23 +0200, peter dalgaard wrote: > On Sep 15, 2010, at 10:55 , Uwe Ligges wrote: > > > > > > On 14.09.2010 20:50, Seb wrote: > >> On Tue, 14 Sep 2010 12:02:04 +0200, > >> Uwe Ligges wrote: > >> > >>> It returns a list with athe class attribut set to "by", just use: x

Re: [Rd] value returned by by()

2010-09-15 Thread peter dalgaard
On Sep 15, 2010, at 10:55 , Uwe Ligges wrote: > > > On 14.09.2010 20:50, Seb wrote: >> On Tue, 14 Sep 2010 12:02:04 +0200, >> Uwe Ligges wrote: >> >>> It returns a list with athe class attribut set to "by", just use: x<- >>> by(.) unclass(x) >> >> Thanks Uwe, however, that still returns

Re: [Rd] value returned by by()

2010-09-15 Thread Uwe Ligges
On 14.09.2010 20:50, Seb wrote: On Tue, 14 Sep 2010 12:02:04 +0200, Uwe Ligges wrote: It returns a list with athe class attribut set to "by", just use: x<- by(.) unclass(x) Thanks Uwe, however, that still returns an array when using the data.frame method for by(): R> class(unclass(w

Re: [Rd] value returned by by()

2010-09-14 Thread Seb
On Tue, 14 Sep 2010 12:02:04 +0200, Uwe Ligges wrote: > It returns a list with athe class attribut set to "by", just use: x <- > by(.) unclass(x) Thanks Uwe, however, that still returns an array when using the data.frame method for by(): R> class(unclass(with(warpbreaks, by(warpbreaks[, 1:

Re: [Rd] value returned by by()

2010-09-14 Thread Uwe Ligges
It returns a list with athe class attribut set to "by", just use: x <- by(.) unclass(x) Uwe Ligges On 14.09.2010 00:11, Seb wrote: Hi, I noticed that by() returns an object of class 'by', regardless of what its argument 'simplify' is. ?by says that it always returns a list if simplify=