Skip to content
Prev 54251 / 63424 Next

split() - unexpected sorting of results

Hi Peter,

2017-10-20 21:33 GMT+02:00 Peter Meissner <retep.meissner at gmail.com>:
As the documentation states,

       f: a ?factor? in the sense that ?as.factor(f)? defines the
          grouping, or a list of such factors in which case their
          interaction is used for the grouping.

And, in fact,
[1] 1  2  3  4  5  6  7  8  9  10 11
Levels: 1 2 3 4 5 6 7 8 9 10 11
[1] 1  2  3  4  5  6  7  8  9  10 11
Levels: 1 10 11 2 3 4 5 6 7 8 9

Regards,
I?aki