sp_richg: Richness and frequency by treatment.

View source: R/sp_richg.R

sp_richgR Documentation

Richness and frequency by treatment.

Description

The function returns a tibble: "n_plot" the frequency of grouped variable. "n_species" species richness of the grouped variable.

Usage

sp_richg(comm, char, factor = "")

Arguments

comm

community data matrix.

char

characteristic from the community.

factor

name of the variable used for build a grouped community data.

Value

a tibble

Examples

library(vegan)
data("dune")
data("dune.env")
sp_richg(dune, dune.env, factor = "Management")

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