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

Zero abundance counts in one or more sample sites #48

Open
aquadog7900 opened this issue Mar 2, 2020 · 1 comment
Open

Zero abundance counts in one or more sample sites #48

aquadog7900 opened this issue Mar 2, 2020 · 1 comment

Comments

@aquadog7900
Copy link

Hi there, I am trying to process my data:
iNEXT(num24, q=0, datatype = "abundance")

and run into the following error:

Error in if (sum(x) == 0) stop("Zero abundance counts in one or more sample sites") :
missing value where TRUE/FALSE needed
In addition: Warning message:
In Fun(x, q) : NAs introduced by coercion

My data frame has species in the first column, and 10 site columns with abundances.
If some species have zero abundances, that shouldn't be a problem, correct? E.g. the "birds" data set has 0 for some species....

@KathrynAlta12
Copy link

Hi, I don't think that having 0 for some species should be a problem (at least I know it is not if you are running it as incidence data). But you could also try just removing the columns that have n zeros for abundances.

Your additional warning message "In Fun(x, q) : NAs introduced by coercion" is because you have the species names listed in the first column. The program is expected a number there and it gets confused when you are giving it a name so it introduces an NA (Basically the computers version of "I don't know what this is").

I think that removing the first column with the names might fix both of your problems because a column of all NAs might be being red as a "Zero abundance counts in one or more sample sites"

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

No branches or pull requests

2 participants