spp_rich: Computes species richness

View source: R/2-spp_rich.R

spp_richR Documentation

Computes species richness

Description

Computes species richness

Usage

spp_rich(x, na.rm = FALSE)

Arguments

x

A numeric vector of species abundances/presences in the community

na.rm

logical. Should missing values (including NaN) be removed?

Value

An object of the same class of x (i.e. numeric vector, matrix or SpatRaster)

Examples

spp_rich(c(3, 7, 10, 2, 0, 1, NA))


HemingNM/testPackage documentation built on July 7, 2022, 7:33 a.m.