Learn R Programming

dtwSat (version 0.2.8)

shiftDates: Shift dates

Description

This function shifts the dates of the time series to a given base year.

Usage

shiftDates(object, year = NULL)

# S4 method for twdtwTimeSeries shiftDates(object, year = NULL)

# S4 method for list shiftDates(object, year = NULL)

# S4 method for zoo shiftDates(object, year = NULL)

Value

An object of the same class as the input object.

Arguments

object

twdtwTimeSeries objects, zoo objects or a list of zoo objects.

year

the base year to shift the time series to.

Author

Victor Maus, vwmaus1@gmail.com

References

Maus:2019dtwSat

Maus:2016dtwSat

Maus:2019dtwSat

Maus:2016dtwSat

See Also

twdtwTimeSeries-class

Examples

Run this code
patt = twdtwTimeSeries(MOD13Q1.patterns.list)
npatt = shiftDates(patt, year=2005)
index(patt)
index(npatt)

Run the code above in your browser using DataLab