Skip to content
Prev 179455 / 398513 Next

tapply changing order of factor levels?

Hi,

I don't believe the problem is related to tapply. I would say it is 
because of the factor. In fact, the order of a factor is given by the 
alphanumerical order of his levels. You can see it with levels(myfactor).
I you want to change the order, redefine the levels of myfactor with the 
expected order or use the function ordered.

Alain
Chirantan Kundu wrote: