vegandevs / vegan

R package for community ecologists: popular ordination methods, ecological null models & diversity analysis
https://vegandevs.github.io/vegan/
GNU General Public License v2.0
457 stars 98 forks source link

Newer Chao et al. FD indices? #461

Open jebyrnes opened 2 years ago

jebyrnes commented 2 years ago

I'm curious if the code at https://github.com/AnneChao/FunD/blob/master/FunD_Rcode.txt from the awesome Chao et al. 2019 Ecological Monograph on functional diversity https://esajournals.onlinelibrary.wiley.com/doi/abs/10.1002/ecm.1343 will be incorporated into vegan? Seems like a good home for it, given that vegan::renyi() can already give you hill numbers for different values of q (scale in the function)

gavinsimpson commented 2 years ago

There's no licence on the code so someone would need to ask Anne if they were OK with it being ported over and have them indicate that they are willing to release the code under the GPL.

The likelihood of this making it into vegan would increase significantly if someone actually ported the code and made a PR where we could discuss it, make it match vegan style etc.

jarioksa commented 2 years ago

It's OK to write the functions following mathematics in publications, but taking existing code really needs permission, or rather the original authors to submit the code to vegan.