ajrominger / pika

an R package for macroecology
GNU General Public License v3.0
2 stars 1 forks source link

Models of spatial SADs #5

Open dmcglinn opened 5 years ago

dmcglinn commented 5 years ago

This thread continues from: https://github.com/cmerow/meteR/issues/2 I have functions to model and fit spatial species-abundance distributions from Conlisk et al. (2007) and Harte et al. (2008). They are posted here:

https://github.com/weecology/mete-spatial/blob/master/scripts/spat_analytical_prob_funcs.R

https://github.com/weecology/mete-spatial/blob/master/scripts/heap.c

These may be good functions to incorporate into a more general macroecological R package such as pika. The functions lack documentation and formal tests. They also use a slightly different coding style that uses snake_case rather than camelCase which pika seems to favor. Otherwise the functions should be pretty easy to incorporate into the package.

I would definitely be interested to discuss the directions to take a general purpose macroecology R package so ping me if this is something you want feedback on.

dmcglinn commented 5 years ago

I should note that the functions do have some documentation just not formal Roxygen documentation for easily generating man files.