calculateLWDCumulativeMetrics: Calculate cumulative LWD metrics

Description Usage Arguments Details Value

View source: R/calculateLargeWoody.r

Description

This function calculates count and volume metrics by size class.

Usage

1
2
calculateLWDCumulativeMetrics(uid, size.class, count, is.wadeable, lwdlength,
  lwdarea, epa.names = T)

Arguments

uid

vector of site-visit indicators

size.class

A vector of size class codes (e.g., WSDSL, DXDLL, ...)

count

vector of counts of LWD pieces

is.wadeable

logical describing whether the site is wadeable or not

lwdlength

numeric, the total stream length over which LWD has been quantified at the site.

lwdarea

numeric, the total area over which LWD has been quantified at the site.

epa.names

should the metrics be in data.frame format with EPA's names or in contingency table style. Defaults to EPA style.

Details

The lwdlength and lwdarea argument should be as calculated by calculateLWDSiteLength and calculateLWDSiteArea functions, respectively.

Value

If the epa.names argument is FALSE, then the function returns an array of cumulative counts within size classes. If TRUE, the function returns a metric data.frame with epa metric names.


jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.