RobinHankin / disordR

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

print method for empty disindex objects #53

Open RobinHankin opened 1 year ago

RobinHankin commented 1 year ago
library("disordR")
#> Loading required package: Matrix
which(disord(1:3) == 4)
#> A disind object with hash 3b882cf2f8c5da05a6163c008214dc2a2de7154e and 0 (implementation-specific) elements

It's a bit odd to read that there are "0 (implementation-specific) elements" in this object.

RobinHankin commented 1 year ago

This too is a little odd:

library("disordR")
#> Loading required package: Matrix
which(disord(1:3) == 2)
#> A disind object with hash d9d1d9495a4ed83f1cd519a11c3665650e748898 and 1 (implementation-specific) elements

"1 (implementation-specific) elements" should be "1 (implementation-specific) element".