JohnsonHsieh / iNEXT

R package for interpolation and extrapolation
https://JohnsonHsieh.github.com/iNEXT
57 stars 26 forks source link

fix `as.incfreq()` warnings, clarify documentation and add tests #66

Open stragu opened 3 years ago

stragu commented 3 years ago

as.incfreq() would throw a warning when the presence-absence data was only 0s or only 1s.

For example, try the following in the current release:

test_df0 <- data.frame(col1 = rep.int(0, 10))
library(iNEXT)
as.incfreq(test_df0)

This PR fixes the following:

I am not particularly familiar with the package, so wanted to also ask: