calcSppTL: Calculate species trophic levels

View source: R/networkProperties.R

calcSppTLR Documentation

Calculate species trophic levels

Description

Calculate species trophic levels

Usage

calcSppTL(web = NULL, community = NULL, out.type = c("vector", "data.table"))

Arguments

web

a square matrix representing an adjacency matrix.

community

object of class "Community", output by cheddar::Community

out.type

character. should trophic levels be output as a named vector (as the output of cheddar::PreyAveragedTrophicLevel) or a data.table with species as columns and a single row of trophic level values?

Details

Cannibalistic links are removed with ⁠[cheddar::RemoveCannibalisticLinks()]⁠ before calculating species trophic levels with ⁠[cheddar::PreyAveragedTrophicLevel()]⁠

Value

a vector or data.table (see out.type) of trophic level values for each species in the community.


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.