Dear Prof Chao.
I’m currently using a couple of the packages you’ve placed on CRAN, working with species richness estimation using fossil data. I think there’s a small bug in the SpadeR::ChaoSpecies function which makes it not compute if there are no species observed twice or four times. If f2=0 and f4=0, it does not return any output, and it’s due to an attempt of dividing f2/f4 inside a conditional boolean check. Can be reproduced by
abs = c(1,1,3,3,5,6,7)
ChaoSpecies(abs,datatype=”abundance”)
Jostein Starrfelt
2015-12-01 | 13:21:15
Dear Prof Chao.
I’m currently using a couple of the packages you’ve placed on CRAN, working with species richness estimation using fossil data. I think there’s a small bug in the SpadeR::ChaoSpecies function which makes it not compute if there are no species observed twice or four times. If f2=0 and f4=0, it does not return any output, and it’s due to an attempt of dividing f2/f4 inside a conditional boolean check. Can be reproduced by
abs = c(1,1,3,3,5,6,7)
ChaoSpecies(abs,datatype=”abundance”)
best
Jostein