powered by
This function shifts the dates of the time series to a given base year.
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)
# S4 method for twdtwTimeSeries shiftDates(object, year = NULL)
# S4 method for list shiftDates(object, year = NULL)
# S4 method for zoo shiftDates(object, year = NULL)
An object of the same class as the input object.
object
twdtwTimeSeries objects, zoo objects or a list of zoo objects.
twdtwTimeSeries
zoo
the base year to shift the time series to.
Victor Maus, vwmaus1@gmail.com
Maus:2019dtwSat
Maus:2016dtwSat
twdtwTimeSeries-class
patt = twdtwTimeSeries(MOD13Q1.patterns.list) npatt = shiftDates(patt, year=2005) index(patt) index(npatt)
Run the code above in your browser using DataLab