Learn R Programming

tsvr: timescale-specific variance ratio

Lei Zhao, China Agricultural University Shaopeng Wang, Peking University Daniel C. Reuman, University of Kansas - maintainer

This repository provides tools for timescale decomposition of the classic variance ratio of community ecology. Tools are as described in Zhao et al (in prep), extending commonly used methods introduced by Peterson et al (1975) <doi: 10.2307/1936306>.

Explanations

In addition to the documentation, see the vignette, which is the best way to get started.

Installation

The package is on the Comprehensive R Archive Network (CRAN).

For a quick install of this development version: devtools::install_github(repo="reumandc/tsvr"). The install_github function, by default, will not install the vignette. There is an option for installing vignettes (build_vignettes=TRUE), but it seems finicky. You can also clone the repository and use devtools::install() to install from your local clone. The build_vignettes=TRUE option seems to work better for devtools::install than it does for devtools::install_github. If you have trouble, please email me.

Copy Link

Version

Install

install.packages('tsvr')

Monthly Downloads

185

Version

1.0.2

License

GPL-3

Maintainer

Daniel C. Reuman

Last Published

January 9th, 2021

Functions in tsvr (1.0.2)

aggts

Aggregates a tsvreq_classic object across a set of timescales; also the constructor function for class vreq_classic_ag.
cospect

Calculate the cospectrum between all pairs of time series
set_ts

Set and get methods for classes in the tsvr package
tsvreq

Creator function for the tsvreq S3 class
vreq_classic

Creator function of vreq_classic S3 class
vreq_LdM

Creator function of vreq_LdM S3 class
vr

Compute the classic or Loreau-de Mazancourt variance ratio
vreq_LdM_methods

Basic methods for the vreq_LdM class
vreq_classic_ag_methods

Basic methods for the vreq_classic_ag class
cv2

Calculates various measures of population and community variability
tsvreq_classic_methods

Basic methods for the tsvreq_classic class
tsvreq_methods

Basic methods for the tsvreq class
vrf

Compute the frequency-specific variance ratio
wts

Compute the weights (wts)
vreq

Creator function for the vreq S3 class
vreq_classic_methods

Basic methods for the vreq_classic class
tsvreq_classic

Creator function for the tsvreq_classic S3 class
vreq_methods

Basic methods for the vreq class
print.summary_tsvr

Print method for summary_tsvr class
errcheck_tsvreq

Error check inputs for the creator function for the tsvreq class.
errcheck_data

Error check a data matrix.
cv2f

Compute a frequency-specific version of CVcom or CVcomip
errcheck_vreq

Error check inputs for the creator function for the vreq class.
JRGdat

Percent cover data from Jasper Ridge Biological Preserve serpentine grassland site