TLcheddar: Calculates the trophic level for each tropospecies

View source: R/utility_functions.R

TLcheddarR Documentation

Calculates the trophic level for each tropospecies

Description

Calculates the trophic level for each tropospecies

Usage

TLcheddar(W)

Arguments

W

A matrix of trophic species. Rows eat columns.

Details

This function is a subset of code provided in the package Cheddar written by Lawrence Hudson, Dan Reuman and Rob Emerson. It is licensed under a BSD_2_clause, the text of which is provided as a comment in the function code. The original package can be found on CRAN or at https://github.com/quicklizard99/cheddar/

Value

A vector of trophic level assignments. The base of the food chain is 0.

Examples

TLcheddar(intro_comm$imat)

soilfoodwebs documentation built on May 31, 2023, 5:46 p.m.