README.md

SER: An R package to characterize environmental regimes DOI:10.1002/ece3.9882

NOTES: SER is extremely useful in linking time-series environmental variables to discrete biological responses. Specifically, SER function summaries time-series environmental variables into indices covering different facets i.e., magnitude, frequency, and rate of change of the data in any focused period, which are typically masked by using simple average or median values in conventional way. In total, 11 elementary indices were developed, and users can developed their own environmental regimes by changing the argument days_bf. Besides, it is recommended that users carefully read the vignette and check published studies (Guo et al. 2020, 2021; Wu et al. 2022) that used SER to make the most out of their data set with this package.

Install the package

# install package devtools if necessary
if(!require(devtools)) install.packages("devtools")

# build_vignettes = T, so the vigenette will be availiable
devtools::install_github("https://github.com/kun-ecology/SER", build_vignettes= TRUE)

Tutorial

A tutorial (vignette) is availiable for this package, it provides basic information of how short-period environmental regime is developed and how the package can be used with an example.

To access it:

vignette("SER")

We only use hydrological data as an example in the tutorial, but short-period environmental regime is case specific, see the vignette for details.

There are two datasets embeded in the package: hydro_df, a dataframe, containing daily discharge data in a stream; sample_date, a vector, containing 13 elements (in date fromate).

Below is how the main function SER works with the demo data:

SER(hydro_df$Date, hydro_df$Discharge, sample_date)

We highly recommend you read through the tutorial and then define your own short-period environmental indices.

Citation

If you use this package, please cite it as:

Naicheng Wu, Kun Guo, Yi Zou, Fengzhi He, Tenna Riis (2023). SER: An R package to characterize environmental regimes. Ecology and Evolution, 13, e9882. https://doi.org/10.1002/ece3.9882

Reference



kun-ecology/SER documentation built on Dec. 2, 2023, 10:13 p.m.