Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fitsad() fails if 0's in data #101

Open
epetsios opened this issue Nov 12, 2015 · 2 comments
Open

fitsad() fails if 0's in data #101

epetsios opened this issue Nov 12, 2015 · 2 comments
Labels
Milestone

Comments

@epetsios
Copy link

Is there any way to avoid fitsad failing if there are 0's in the abundance data?

Specific error:
x.geom = fitsad(x$Comm7, sad = "geom")
Error in if (sum(x == 0) > 0) { : missing value where TRUE/FALSE needed

Thank you

@epetsios epetsios changed the title fitsad() fails in 0's in data fitsad() fails if 0's in data Nov 12, 2015
@andrechalom
Copy link
Member

I've been having the same problem, and in my calculations I'm always using
something like x<-x[x>0] as a workaround.

But I believe keeping these zeroes may become important for some estimates
of non-parametric diversity indexes (see other issue here on github) so we
will probably work on a more appropriate solution soon.
On Nov 12, 2015 4:21 PM, "epetsios" [email protected] wrote:

Is there any way to avoid fitsad failing if there are 0's in the abundance
data?

Specific error:
x.geom = fitsad(x$Comm7, sad = "geom")
Error in if (sum(x == 0) > 0) { : missing value where TRUE/FALSE needed

Thank you


Reply to this email directly or view it on GitHub
#101.

@andrechalom andrechalom added this to the sads 1.0.0 milestone Dec 9, 2015
@andrechalom
Copy link
Member

[ Related: #18 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants