sp_richf: Species Richness

View source: R/sp_richf.R

sp_richfR Documentation

Species Richness

Description

Finds the number of species, by community and for each site. Also frequencies of species.

Usage

sp_richf(comm, method = "comm")

Arguments

comm

community matrix

method

"comm" number of unique species, "site" number of species by site, "freq" number of sites where the species are present.

Value

a tibble

Examples

library(vegan)
data("BCI")
sp_richf(dune, method = "comm")
sp_richf(dune, method = "site")
sp_richf(dune, method = "freq")
sp_richf(BCI, method = "comm")
sp_richf(BCI, method = "site")
sp_richf(BCI, method = "freq")

PaulESantos/diversity.tool documentation built on July 29, 2022, 8:20 a.m.