TLPS {cheddar} | R Documentation |
Trophic-link properties
Description
Returns a data.frame
of first-class and computed
trophic-link properties.
Usage
TLPS(community, node.properties=NULL, link.properties=NULL)
Arguments
community |
an object of class |
node.properties |
the names of the node properties to return. Should
meet the criteria of the |
link.properties |
the names of link properties. These can be names of
first-class properties (returned by |
Details
This function is named TLPS for Trophic Link PropertieS. It returns
a data.frame
containing the columns 'resource' and 'consumer'
and any requested properties.
Value
A data.frame
with NumberOfTrophicLinks
rows.
Author(s)
Lawrence Hudson
See Also
TrophicLinkPropertyNames
, TLP
,
NumberOfTrophicLinks
, NPS
,
Log10RCMRatio
,
ThreeNodeChains
, TrophicChains
Examples
data(TL84)
# Just resource and consumer
head(TLPS(TL84))
# resource, consumer, resource.M and consumer.M
head(TLPS(TL84, node.properties='M'))
# Log10RCMRatio returns log10-transformed resource.M / consumer.M
head(TLPS(TL84, node.properties='M', link.properties='Log10RCMRatio'))
# Skipwith Pond has link.evidence and link.life.stage first-class properties
data(SkipwithPond)
head(TLPS(SkipwithPond))
# resource, consumer and link.evidence
head(TLPS(SkipwithPond, link.properties='link.evidence'))
# Skipwith Pond has diet.fraction first-class property
data(Benguela)
head(TLPS(Benguela))