Discovered a small but important difference between factor() and ordered() in #Rstats -- only took about an hour of debugging🤦
2
3
9
Seems like a bug because this does seems to do what you want as well:
> factor(levels=c("a", "b", "c"), ordered=TRUE)
ordered(0)
Levels: a < b < c
>
Aug 18, 2022 · 2:55 PM UTC
1
3


