home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / ts < prev    next >
Encoding:
Text File  |  1997-04-23  |  2.0 KB  |  62 lines

  1.     
  2.     _T_i_m_e-_S_e_r_i_e_s _O_b_j_e_c_t_s
  3.     
  4.          ts(x, start, end, frequency)
  5.          as.ts(x)
  6.          is.ts(x)
  7.     
  8.          print(ts.obj, calender, ...)
  9.          plot(ts.obj, ...)
  10.     
  11.     _A_r_g_u_m_e_n_t_s:
  12.     
  13.                x : a vector or matrix the observed time-series
  14.                    values.
  15.     
  16.            start : the time of the first observation.
  17.     
  18.              end : the time of the last observation.
  19.     
  20.        frequency : the number of observations per unit of time.
  21.     
  22.     _D_e_s_c_r_i_p_t_i_o_n:
  23.     
  24.          The function ts is used to create time-series objects.
  25.          These are vector or matrices with class of "ts" (and
  26.          additional attributes) which represent data which has
  27.          been sampled at equispaced points in time.  In the
  28.          matrix case, each column of the matrix x is assumed to
  29.          contain a single (univariate) time series.
  30.     
  31.          The value of argument frequency is used when the series
  32.          is sampled an interal number of times in each unit time
  33.          interval.  For example, one could use a value of 7 for
  34.          frequency when the data are sampled daily, and the
  35.          natural time period is a week, or 12 when the data are
  36.          sampled monthly and the natural time period is a year.
  37.     
  38.          start and end can either be integers which correspond
  39.          to natural time units, or vectors of two integers,
  40.          which give a natural time unit and a (1-based) number
  41.          of samples into the time unit.
  42.     
  43.          as.ts and is.ts respectively coerce a vecor into a
  44.          time-series and test whether an object is a time
  45.          series.
  46.     
  47.          Time series have methods associated with the generic
  48.          print and plot functions.  The argument calender to the
  49.          print method can be used to enable/disable the display
  50.          of information about month-names, quarter-names or year
  51.          when printing.
  52.     
  53.     _S_e_e _A_l_s_o:
  54.     
  55.          frequency, end, start, time, window.
  56.     
  57.     _E_x_a_m_p_l_e_s:
  58.     
  59.          # start date - July 1954
  60.          x <- ts(x, start=c(1954,7), frequency=12)
  61.     
  62.