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

Fix species richness for non-integer data (e.g., OTU proportions) #891

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vmikk
Copy link

@vmikk vmikk commented Mar 1, 2018

Hello!

Currently estimate_richness(..., measures = "Observed") works only for integer data:

esp <- transform_sample_counts(esophagus, function(OTU) OTU/sum(OTU) )
estimate_richness(esp, measures = "Observed")

Leads to an error

Error in estimateR.default(newX[, i], ...) : 
  function accepts only integers (counts)

I propose to change estimateR-function for vegan::specnumber which works fine for non-integer data (e.g., OTU proportions).

This commit does not change column names and the order of columns in estimate_richness results, so it shouldn't impact any dependent functions.

With best regards,
Vladimir

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

Successfully merging this pull request may close these issues.

1 participant