wtdCV: Calculate weighted component CV

Description Usage Arguments Value Examples

View source: R/wtdCV.R

Description

This function calculates an estimate of the mean coefficient of variation among an aggregate's components. The estimate is weighted by each components mean abundance. Based on equation 4 in Thibaut and Connolly 2013.

Usage

1
wtdCV(datMat, weight = TRUE)

Arguments

datMat

A numeric matrix, generally representing a time series of component specific abundances.

weight

A logical argument that specifies whether CV should be weighted or not.

Value

Returns a numeric representing mean CV.

Examples

1
2
r <- recMatrix[1:10, ]
wtdCV(r, weight = TRUE)

TESA-workshops/TESAsamSim documentation built on Feb. 6, 2021, 12:25 a.m.