[Rd] RFC: sapply() limitation from vector to matrix, but not further

Gabor Grothendieck ggrothendieck at gmail.com
Mon Dec 27 23:06:25 CET 2010

On Wed, Dec 1, 2010 at 3:39 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
> My proposal -- implemented and "make check" tested --
> is to add an optional argument  'ARRAY'
> which allows
>> sapply(v, myF, y = 2*(1:5), ARRAY=TRUE)

It would reduce the proliferation of arguments if the simplify=
argument were extended to allow this, e.g. simplify = "array" or
perhaps simplify = n would allow a maximum of n dimensions.

Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

More information about the R-devel mailing list