Skip to content

Suggestion for tapply

2 messages · Frank E Harrell Jr, Peter Dalgaard

#
In S-Plus the ... argument for tapply is before simplify.
In R (1.2.3) ... is after simplify, causing the user to
have to specify simplify every time ... is used even 
though the default is usually OK.  Unless there was a
benefit to reordering the arguments, it might be a good 
idea to reconsider the current function definition.  
... is probably used more than simplify 
(e.g., tapply(rainfall, state, quantile, probs=c(.25,.75))).

Thanks -Frank
#
Frank E Harrell Jr <fharrell at virginia.edu> writes:
Right. We have as standard strategy to be calling sequence compatible
with S(-PLUS), unless there's good reason not to, so this is close to
being a bug. Will fix for 1.3.0.