fix bugs for ordered factors
roxygen
update 0.2-2