Skip to content

initializing timeseries with ts()

2 messages · Daren Zou, Brian Ripley

#
On 15/08/2013 21:11, Daren Zou wrote:
Read the help page, ?ts .

      The function ?ts? is used to create time-series objects.  These
      are vector or matrices with class of ?"ts"? (and additional
      attributes) which represent data which has been sampled at
      equispaced points in time.

That is the definition used in almost all work on time series in 
statistics.  And the claim that the vector or matrix need be numeric is 
false.

There are several packages which handle un-equally spaced series: 
http://cran.r-project.org/web/views/TimeSeries.html .
PLEASE do.