Learn R Programming

rnrfa (version 2.0.3)

seasonal_averages: Calculate seasonal averages

Description

This calculates the seasonal averages from a time series.

Usage

seasonal_averages(timeseries, season = "Spring")

Arguments

timeseries

Time series (zoo class).

season

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

Value

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

Examples

Run this code
# NOT RUN {
  seasonal_averages(timeseries = cmr(18019), season = "Spring")
  seasonal_averages(list(cmr(18019), cmr(18019)), season = "Spring")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab