Learn R Programming


sprex

Description

sprex is a package for calculating species richness for rarefaction and extrapolation. It contains functions for calculating non-parametric species richness such as jackknife, Chao1, and ACE. Also available are functions for plotting species richness and extrapolation curves, and standard diversity and entropy indices.

Installation

To install the stable version from CRAN:

install.packages('sprex')

To install the latest version from GitHub:

# make sure you have devtools installed
if (!require('devtools')) install.packages('devtools')

# install from GitHub
devtools::install_github('ericarcher/sprex')

Contact

version 1.4.2 (on CRAN)

  • removed plot.discovery.curve()
  • redesigned discovery.curve() to return data frame defining curve and plotting curve if selected.
  • added diversity() to compute diversity and entropy indices

version 1.4.1

  • added pct.range argument to clench function to specify minimum and maximum percentages of sample sizes
  • changed argument m in expected.num.species function to accept vectors and return a matrix

Copy Link

Version

Install

install.packages('sprex')

Monthly Downloads

388

Version

1.4.2

License

GNU General Public License

Issues

Pull Requests

Stars

Forks

Maintainer

Eric Archer

Last Published

March 25th, 2025

Functions in sprex (1.4.2)

expected.num.species

Expected Number of Species
diversity

Diversity Indices
discovery.curve

Discovery Curve
bootstrap.assemblage

Bootstrap Assemblage of Species
f.stats

Frequency Vector Statistics
num.samples.required

Number of Samples Required
expand.freqs

Expand Frequency Matrix
ACE

Number of Unobserved Species
sample.to.species.freq

Create Vector of Species Frequencies
osa.old.growth

Osa beetle species counts
species.to.sample.freq

Create Vector of Sample Frequencies
rarefaction.overlap

Rarefaction Overlap
sprex-package

Calculate species richness and extrapolation metrics