sprex is a package for calculating species richness forrarefaction and extrapolation. It contains functions for calculatingnon-parametric species richness such as jackknife, Chao1, and ACE. Alsoavailable are functions for plotting species richness and extrapolationcurves, and standard diversity and entropy indices.
To install the stable version from CRAN:
install.packages('sprex')To install the latest version from GitHub:
# make sure you have devtools installedif (!require('devtools'))install.packages('devtools')# install from GitHubdevtools::install_github('ericarcher/sprex')plot.discovery.curve()discovery.curve() to return data framedefining curve and plotting curve if selected.diversity() to compute diversity and entropyindicespct.range argument toclenchfunction to specify minimum and maximum percentages of sample sizesm inexpected.num.speciesfunction to accept vectors and return a matrix