Learn R Programming

rnrfa (version 2.1.0.5)

seasonal_averages: Calculate seasonal averages

Description

This calculates the seasonal averages from a time series.

Usage

seasonal_averages(timeseries, season = "Spring")

Value

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

Arguments

timeseries

Time series (zoo class).

season

Name of the season, which corresponds to a quarter: Winter (Q1), Spring (Q2), Summer (Q3), Autumn (Q4)

Examples

Run this code
if (FALSE) {
  seasonal_averages(timeseries = cmr(18019), season = "Spring")
  seasonal_averages(list(cmr(18019), cmr(18019)), season = "Spring")
}

Run the code above in your browser using DataLab