Skip to content

aggregate(), tapply(): Why is the order of the grouping variables not kept?

1 message · Marius Hofert

#
Personally, I prefer to have R not to change my input as much as possible... but
I totally agree with you that there are other instances where it's preferable
that the output does not depend on the input.
... which I still find very confusing/unnatural, but okay.
it's also the default behavior of expand.grid() for example.

Cheers,

Marius