Re: [R-pkg-devel] Return Value of By Function

2015-09-15 Thread Martin Maechler
> Dario Strbenac > on Tue, 15 Sep 2015 05:00:05 + writes: > Good day, I am curious why the by function result has > dimensions attached, even when it returns a list. Sorry, but this is *NOT* the mailing list for such questions ! Please ask on

[R-pkg-devel] Return Value of By Function

2015-09-14 Thread Dario Strbenac
Good day, I am curious why the by function result has dimensions attached, even when it returns a list. result <- by(warpbreaks[, 1], warpbreaks[, -1], summary) str(result) List of 6 ... - attr(*, "dim")= int [1:2] 2 3 - attr(*, "dimnames")=List of 2 ..$ wool : chr [1:2] "A" "B" ..$