shiftDates: Shift dates

Description Usage Arguments Value Author(s) See Also Examples

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(MOD13Q1.patterns.list)
npatt = shiftDates(patt, year=2005)
index(patt)
index(npatt)

dtwSat documentation built on May 29, 2017, 9:22 p.m.