RobinHankin / disordR

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

replacement bug #35

Closed RobinHankin closed 2 years ago

RobinHankin commented 2 years ago
> a <- disord(1:4)
> a
A disord object with hash 973fab30f5c177d6692176fc5229c843fb7494ba and elements
[1] 1 2 3 4
(in some order)
> a[] <- c(7,7,7,7)
Error in .local(x, i = i, j = j, ..., value) : 
  length(value) == 1 is not TRUE
> 

Above we would expect a to become a vector of 7's. But it returns an error.