Learn R Programming

rnrfa (version 0.5.4)

seasonalAverages: Calculate seasonal averages

Description

This calculates the seasonal averages from a time series.

Usage

seasonalAverages(timeseries, season = "Spring", startSeason = NULL, endSeason = NULL, parallel = FALSE)

Arguments

timeseries
Time series (xts class).
season
Name of the season (Autumn, Winter, Spring, Summer)
startSeason
String encoding the start of the season (e.g. for spring in the northen hemisphere this is "03-21")
endSeason
String encoding the end of the season (e.g. for spring in the northen emisphere this is "06-20")
parallel
Logical, FALSE by default. If parallel = TRUE means that the function can be used in parallel computations.

Value

A vector containing the seasonal average and significance level (p-value) for each time series.

Examples

Run this code
## Not run: 
#   seasonalAverages(CMR(18019), season = "Spring")
#   seasonalAverages(list(CMR(18019), CMR(18019)), season = "Spring")
# ## End(Not run)

Run the code above in your browser using DataLab