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 / time < prev    next >
Encoding:
Text File  |  1997-04-23  |  954 b   |  39 lines

  1.     
  2.     _S_a_m_p_l_i_n_g _T_i_m_e_s _o_f _T_i_m_e-_S_e_r_i_e_s
  3.     
  4.          time(x, offset=0)
  5.          start(x)
  6.          end(x)
  7.          frequency(x)
  8.          tsp(x)
  9.     
  10.     _A_r_g_u_m_e_n_t_s:
  11.     
  12.                x : a time-series.
  13.     
  14.     _D_e_s_c_r_i_p_t_i_o_n:
  15.     
  16.          time creates the vector of times at which a time series
  17.          was sampled.  offset can be used to indicate when sam-
  18.          pling took place in the time unit.  0 indicates the
  19.          start of the unit, 0.5 the middle and 1 the end of the
  20.          interval.
  21.     
  22.          start and end extract the times the first and last
  23.          observations were taken and frequency returns the
  24.          number of samples per unit time.
  25.     
  26.          tsp(x) returns the vector
  27.          c(start(x),end(x),frequency(x)).  It is included for
  28.          compatibility with the S language.
  29.     
  30.     _S_e_e _A_l_s_o:
  31.     
  32.          ts.
  33.     
  34.     _E_x_a_m_p_l_e_s:
  35.     
  36.          # a simple series plot
  37.          plot(time(x), x, type="l")
  38.     
  39.