Learn R Programming

rnrfa (version 1.5.0)

seasonal_averages: Calculate seasonal averages

Description

This calculates the seasonal averages from a time series.

Usage

seasonal_averages(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 {
  seasonal_averages(CMR(18019), season = "Spring")
  seasonal_averages(list(CMR(18019), CMR(18019)), season = "Spring")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab