Shift dates

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
shiftDates(object, year = NULL)

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

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

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

Arguments

object

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

year

the base year to shit the time series.

Value

An object of the same class as the input object.

Author(s)

Victor Maus, vwmaus1@gmail.com

See Also

twdtwTimeSeries-class

Examples

1
2
3
4
patt = twdtwTimeSeries(patterns.list)
npatt = shiftDates(patt, year=2005)
index(patt)
index(npatt)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.