From ggrothendieck at gmail.com  Mon Dec 27 23:06:25 2010
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Mon, 27 Dec 2010 17:06:25 -0500
Subject: [Rd] RFC: sapply() limitation from vector to matrix,
	but not further
In-Reply-To: <19702.2469.739772.13707@lynne.math.ethz.ch>
References: <19702.2469.739772.13707@lynne.math.ethz.ch>
Message-ID: <AANLkTin6pbS_99RjSje12Zr7M9mwLy0oKNX7H8gz1Zgh@mail.gmail.com>

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



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