Skip to contents

Summarise total abundance and site occupancy (number of sites with non-zero counts) for each species from a site x species matrix.

Usage

calculate_occupancy_abundance(abund_matrix)

Arguments

abund_matrix

A data frame where the first column is site (site / quadrat identifier) and the remaining columns are species abundances (non-negative integers).

Value

A data frame with columns:

Species

Species (column) name.

TotalAbundance

Column sum across sites.

Occupancy

Number of sites with abundance \(> 0\).

Examples

if (FALSE) { # \dontrun{
oa <- calculate_occupancy_abundance(abund_matrix)
head(oa)
} # }