remove.seasonality: Remove seasonality

View source: R/ts.R

remove.seasonalityR Documentation

Remove seasonality

Description

Calculates the seasonal component of a time series and subtracts it from the original.

Usage

remove.seasonality(x, mc.cores = NULL)

Arguments

x

Either an object of class xts or a list of those.

mc.cores

A numerical input specifying the number of cores to use for the multi core application of the function (see detectCores). This functionality is only available if the input is a list of different objects. If NULL, the function will be calculated classically with only one core. Default = NULL.

Details

The function stl with the argument s.window = 12 and a conversion of the input into a ts class object of daily data is used to calculate the seasonal component. This should be replaced by a more sophisticated solution as soon I digged deeper into the field of deseasonalization. remove.incomplete.years is used to remove incomplete years from the data set. This ensures a better calculation of the seasonal component but also requires to forecast it to the length of the original data set and align it at the right place for subtraction.

This function can also be applied to a list of xts class objects.

Value

Some class as input.

Author(s)

Philipp Mueller

See Also

Other ts: aic.climex.fit.gev, aic.climex.fit.gpd, aic.list, aic, anomalies.list, anomalies.xts, anomalies, bic.climex.fit.gev, bic.climex.fit.gpd, bic.list, bic, check.completeness, remove.incomplete.years.list, remove.incomplete.years.xts, remove.incomplete.years, remove.seasonality.list, remove.seasonality.xts


theGreatWhiteShark/climex documentation built on July 13, 2022, 9:11 a.m.