abd_species: Abundances of Communities

View source: R/abd_species.R

abd_speciesR Documentation

Abundances of Communities

Description

Utilities for community abundances (objects of class "abundances").

Usage

abd_species(abundances, check_arguments = TRUE)

abd_sum(abundances, as_numeric = FALSE, check_arguments = TRUE)

prob_species(species_distribution, check_arguments = TRUE)

Arguments

abundances

an object of class abundances.

check_arguments

if TRUE, the function arguments are verified. Should be set to FALSE to save time when the arguments have been checked elsewhere.

as_numeric

if TRUE, a number or a numeric vector is returned rather than a tibble.

species_distribution

an object of class species_distribution.

Value

abd_species() returns a tibble containing the species abundance columns only, to simplify numeric operations.

prob_species() returns the same tibble but values are probabilities.

abd_sum() returns the sample sizes of the communities in a numeric vector.

Examples

abd_species(paracou_6_abd)
prob_species(paracou_6_abd)
abd_sum(paracou_6_abd)


divent documentation built on April 3, 2025, 7:40 p.m.