tsExtension: Extend a daily or monthly time series

Description Usage Arguments Value Author(s)

Description

Extension of a daily or monthly time series with the chosen first and last dates, and transformation of irregular zoo in regular zoo by adding NA when missing dates.

Usage

1
tsExtension(tsData, startDate = start(tsData), endDate = end(tsData))

Arguments

tsData

[zoo] zoo object with the daily or monthly time series. The date format must be:

  • "%Y-%m-%d" for daily data

  • "%Y-%m-01" for monthly data

startDate

[Date] the first date of the extension. The date format must be:

  • "%Y-%m-%d" for daily data

  • "%Y-%m-01" for monthly data

(by default, first date of tsData: start(tsData))

endDate

[Date] the last date of the extension. The date format must be:

  • "%Y-%m-%d" for daily data

  • "%Y-%m-01" for monthly data

(by default, last date of tsData: end(tsData))

Value

extTsData [zoo] regular zoo object with the daily or monthly extended time series. The date format is:

Author(s)

Florine Garcia (florine.garcia@gmail.com)

Pierre L'Hermite (pierrelhermite@yahoo.fr)


flogrc/piflow documentation built on May 24, 2019, 7:34 a.m.