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

mob_stats breaks when group_var is not a factor #102

Closed
dmcglinn opened this issue Dec 4, 2016 · 2 comments
Closed

mob_stats breaks when group_var is not a factor #102

dmcglinn opened this issue Dec 4, 2016 · 2 comments
Assignees
Labels

Comments

@dmcglinn
Copy link
Member

dmcglinn commented Dec 4, 2016

This is because of this line which assumes that group is a factor. We need a more robust system because group could be a character or a numeric class of variable.

@dmcglinn dmcglinn added the bug label Dec 4, 2016
@dmcglinn dmcglinn changed the title mob_stats breaks when group_var is not a factor mob_stats breaks when group_var is not a factor Dec 4, 2016
@FelixMay
Copy link
Contributor

I started debugging the mob_stats function. During that I noticed that in the example data set inv_comm there are sites with one or even zero individuals. In this case of course rarefaction does not show any interesting results.
Any ideas how to deal with this issue? Only in this function by selecting a certain minimum number of individuals or is this relevant also for other functions?

@FelixMay
Copy link
Contributor

And a second questions on revision of this function (mob_stats) what about the extrapolated richness using SpadeR::ChaoSpecies? Should I reintroduce that or does that cause problems because of package dependencies? What about using vegan::estimateR ?

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