RobinHankin / disordR

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

length #44

Closed RobinHankin closed 1 year ago

RobinHankin commented 1 year ago

Setting the length of a disord object does not return an error:

> (a <- disord(1:5))
A disord object with hash c8d5cf2b423f09441a6e59a0bb2b2f6cd152d234 and elements
[1] 1 2 3 4 5
(in some order)
> length(a) <- 7
> a
[1]  1  2  3  4  5 NA NA
> a <- disord(1:5)
> length(a) <- 3
> a
[1] 1 2 3
> 

and it should.

RobinHankin commented 1 year ago

Now fixed, I think as part of fixing #42