home *** CD-ROM | disk | FTP | other *** search
-
- _T_i_m_e-_S_e_r_i_e_s _O_b_j_e_c_t_s
-
- ts(x, start, end, frequency)
- as.ts(x)
- is.ts(x)
-
- print(ts.obj, calender, ...)
- plot(ts.obj, ...)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : a vector or matrix the observed time-series
- values.
-
- start : the time of the first observation.
-
- end : the time of the last observation.
-
- frequency : the number of observations per unit of time.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- 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. In the
- matrix case, each column of the matrix x is assumed to
- contain a single (univariate) time series.
-
- The value of argument frequency is used when the series
- is sampled an interal number of times in each unit time
- interval. For example, one could use a value of 7 for
- frequency when the data are sampled daily, and the
- natural time period is a week, or 12 when the data are
- sampled monthly and the natural time period is a year.
-
- start and end can either be integers which correspond
- to natural time units, or vectors of two integers,
- which give a natural time unit and a (1-based) number
- of samples into the time unit.
-
- as.ts and is.ts respectively coerce a vecor into a
- time-series and test whether an object is a time
- series.
-
- Time series have methods associated with the generic
- print and plot functions. The argument calender to the
- print method can be used to enable/disable the display
- of information about month-names, quarter-names or year
- when printing.
-
- _S_e_e _A_l_s_o:
-
- frequency, end, start, time, window.
-
- _E_x_a_m_p_l_e_s:
-
- # start date - July 1954
- x <- ts(x, start=c(1954,7), frequency=12)
-
-