Learn R Programming

tsvr (version 1.0.2)

cv2f: Compute a frequency-specific version of CVcom or CVcomip

Description

Compute a frequency-specific version of CVcom or CVcomip.

Usage

cv2f(X, type)

Arguments

X

A matrix with counts or densities arranged in species by time step

type

If com, calculate a frequency-specific CVcom2. If comip, calculate a frequency-specific CVcomip2. See the vignette for definitions of these quantities.

Value

cv2f returns an object of type list consisting of

frequency

a vector from 0 to 1 (not including 0 and 1)

cv2

A vector of frequency-specific population or community variability

References

Zhao et al, (In prep) Decomposition of the variance ratio illuminates timescale-specific population and community variability.

See Also

tsvreq_classic, cv2, browseVignettes("tsvr")

Examples

Run this code
# NOT RUN {
X<-matrix(runif(200,1,100), 10, 20) 
ans<-cv2f(X, type="com")

# }

Run the code above in your browser using DataLab