RobinHankin / disordR

https://robinhankin.github.io/disordR/
1 stars 0 forks source link

factors #40

Closed RobinHankin closed 10 months ago

RobinHankin commented 1 year ago

Factors behave strangely:

> p <- factor(c('a','b','a','a','b','x'))
> p
[1] a b a a b x
Levels: a b x
> disord(p)
A disord object with hash ccba70ec3e61b730ddbe9b0cc0b8ed2f92b345a6 and elements
[1] 1 2 1 1 2 3
(in some order)
> 

See also issue #25

RobinHankin commented 1 year ago

Current behaviour has changed:

> p <- factor(c('a','b','a','a','b','x'))
> disord(p)
A disord object with hash ccba70ec3e61b730ddbe9b0cc0b8ed2f92b345a6 and elements
[1] "a" "b" "a" "a" "b" "x"
(in some order)
> 
RobinHankin commented 10 months ago

I think the current behaviour is good.