On Sun, Mar 29, 2009 at 6:15 AM, Duncan Murdoch <murd...@stats.uwo.ca> wrote:
> On 28/03/2009 4:57 PM, Stavros Macrakis wrote:
>> On Sat, Mar 28, 2009 at 7:53 AM, Duncan Murdoch <murd...@stats.uwo.ca>
>> wrote:
>> 1) Where does the name 'xtfrm' come from?
> I don't know.

Hmm.  If the origins of the name are lost in the mists of history,
perhaps a more mnemonic/intuitive one could be found?

>> 2) Why isn't xtfrm of a numeric vector the identity function?
>
> "Because the implementation does that".  It's a one liner:...

Yes, I was asking *why* the implementation does that.

> The identity function would probably be faster, but why optimize cases that 
> are never needed?
> A better optimization would be just to use order(x), not order(xtfrm(x)).

Why should the *calling* function have the burden of type dispatching?

          -s

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to