Skip to content

tapply changing order of factor levels?

1 message · S Ellison

#
The problem is in the code.

When you say
you have used mydata as a factor and myfactor as  the data.

tapply has (correctly) used the ordered labels in the grouping factor
(mydata) to label its output.

If you did what you probably intended:
tapply(mydata, myfactor,length)

you'll get the order you expected.



*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}