Among other things, it allows you to compare the values of these factors:
> ord.fac <- ordered(c("small", "medium", "large"), levels=c("small", "medium", "large"))
> fac <- factor(c("small", "medium", "large"), levels=c("small", "medium", "large"))
> ord.fac[[1]] < ord.fac[[2]]
[1] TRUE
> fac[[1]] < fac[[2]]
[1] NA
Warning message:
In Ops.factor(fac[[1]], fac[[2]]) : < not meaningful for factors
The documentation assumes that simulation results are of great importance:
, -.
, -, , .