wtdCV: Calculate weighted component CV

View source: R/wtdCV.R

wtdCVR Documentation

Calculate weighted component CV

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

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

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


CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.