Closed akarlinsky closed 1 year ago
Hi, thanks for a great package!
I encountered a bug with the way it handles missing values:
code to replicate error:
a <- c(1,1,NA,1) index_simpson(a) index_simpson(a, na.rm = T)
Output (on both calls to index_simpson:
index_simpson
Error in if (!all(is_whole(x, ...))) { : missing value where TRUE/FALSE needed
Thanks for pointing out this bug, it should work fine now.
Hi, thanks for a great package!
I encountered a bug with the way it handles missing values:
code to replicate error:
Output (on both calls to
index_simpson
: