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
>
Setting the
length
of adisord
object does not return an error:and it should.