The function iNZgithTS
is used to create time-series
objects. Unlike ts
objects, these are lists containing
information about the time-series as well as the data and the
time-series (ts
object) itself.
If a ts
object is used to create the iNZightTS
object,
all the domain information is extracted from that object.
The function recognises the following time variable formatS without case sensitive:
"(Y)yyyy" annually data e.g."(Y)1991"
"(Y)yyyyMmm" monthly data e.g."(Y)1991M01"
"(Y)yyyyQqq" quarterly data e.g."(Y)1991Q01"
"(Y)yyyyWww" weekly data with yearly seasonality e.g."(Y)1991W01"
"(Y)yyyyDdd" daily data with yearly seasonality e.g."(Y)1991D01"
"WwwDdd" daily data with weekly seasonality e.g. "W01D01"
"DddHhh" hourly data with daily seasonality e.g. "D01H01"
The length of digits of each time unit could be flexible and allowing space between the
time unit
In case of data
being a data.frame or path to a .csv
file and start
being omitted, the starting date and the
freq
is extracted from the column that includes the time
information. This column is either named "Time"
or is the first
column. If end
is omitted, all of the data will be used for the
time-series.