Learn R Programming

cheddar (version 0.1-639)

TLP: A single trophic-link property

Description

Returns a single trophic-link property.

Usage

TLP(community, property)

Value

A vector of length NumberOfTrophicLinks.

Arguments

community

an object of class Community.

property

the name of the property to return.

Author

Lawrence Hudson

Details

This function is named TLP for Trophic Link Property. It returns a vector containing the value of property for every trophic link. The returned vector is all NA if there is no trophic-link property with that name.

See Also

TrophicLinkPropertyNames, TLPS, NumberOfTrophicLinks

Examples

Run this code
# Skipwith Pond has a first-class property called link.evidence
data(SkipwithPond)
TLP(SkipwithPond, 'link.evidence') 

# Benguela has a first-class property called diet.fraction
data(Benguela) 
TLP(Benguela, 'diet.fraction') 

# All NA
TLP(SkipwithPond, 'not a property') 

Run the code above in your browser using DataLab