From cberry at tajo.ucsd.edu  Mon Jan  1 18:59:43 2007
From: cberry at tajo.ucsd.edu (Charles C. Berry)
Date: Mon, 1 Jan 2007 09:59:43 -0800
Subject: [Rd] Wish list
In-Reply-To: <45993282.7030409@stats.uwo.ca>
References: <971536df0612312228i4a4bb0b2h6c52c081213c296@mail.gmail.com>
	<45993282.7030409@stats.uwo.ca>
Message-ID: <Pine.LNX.4.64.0701010946250.6276@tajo.ucsd.edu>

On Mon, 1 Jan 2007, Duncan Murdoch wrote:

> A few comments thrown in, and some general comments at the bottom.
>
> On 1/1/2007 1:28 AM, Gabor Grothendieck wrote:
>> This is my 2007 New Year wishlist for R features:
>>
>> 1. [deleted thru 12]

>> 13. Make upper/lower case of simplify/SIMPLIFY consistent on all
>>     apply commands and add a simplify= arg to by.
>
> It would have been good not to introduce the inconsistency years ago,
> but it's too late to change now.
>

Really? The consistency issue only concerns mapply, I think.

How 'bout changing the formals of mapply to

$FUN


$...


$MoreArgs
NULL

$SIMPLIFY
simplify

$USE.NAMES
[1] TRUE

$simplify
[1] TRUE

i.e. add simplify = TRUE and change SIMPLIFY's default to 'simplify'

Then the default behavior is retained, specifying a value for 
either SIMPLIFY or simplify gives the desired behavior and SIMPLIFY takes 
precedence over simplify if both are given values. Not pretty, perhaps, 
but it does the job.

I suppose this could get one into trouble if one of the ... args is named 
'simplify', but I do not imagine that is a big deal.


>> 14. [rest deleted]


Charles C. Berry                        (858) 534-2098
                                          Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	         UC San Diego
http://biostat.ucsd.edu/~cberry/         La Jolla, San Diego 92093-0717



[Rd] Wish list
Charles C. Berry