-
Notifications
You must be signed in to change notification settings - Fork 96
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
Suggestion: adding the group argument to diversity() #393
Comments
This was also suggested in StackOverflow. Then I did not implement this since I think it could confuse users: they use the argument, and get a (correct) result that they did not want. However, I could add this, but what do you mean with diversity by |
This allows easy calculation of additive diversity indices based on diversity indicex. Earlier we had this arg only for specnumber to get the species number of pooled SUs. See github issue #393
You are right, I did not realize that the diversity value per group has to be something like the average Shannon value. I think this will really be confusing if it is not clear how the values are derived. Your suggestion of using the pooled diversity might then be even more confusing? Maybe it is better to leave it like it is and let the user work with the diversity output per sample. |
Despite you giving up, I added that option to |
The group argument in specnumber() is very useful but it is missing for the diversity function. Yet calculating an index per group is what is regularly done, and it could speed up many processes for calculating diversity data . Hence, I suggest adding the group argument to diversity().
The text was updated successfully, but these errors were encountered: