Wolfram Fischer wrote:

> What is the reason, that the levels of the factor
> returned by cut() are not marked as ordered levels?

I don't know, but you can always make it ordered with

ordered(cut(breaks = 3, sample(10)))

>> help(factor)
>     ...
>     If 'ordered' is 'TRUE', the factor levels are assumed to be ordered.
>     ...

The help file for factor() probably doesn't tell you much about how
cut() works. :-)

-- 
Bjørn-Helge Mevik

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to