wtdCV | R Documentation |
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.
wtdCV(datMat, weight = TRUE)
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. |
Returns a numeric representing mean CV.
r <- recMatrix[1:10, ]
wtdCV(r, weight = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.