home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- time(x, offset=0)
- start(x)
- end(x)
- frequency(x)
- tsp(x)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : a time-series.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- time creates the vector of times at which a time series
- was sampled. offset can be used to indicate when sam-
- pling took place in the time unit. 0 indicates the
- start of the unit, 0.5 the middle and 1 the end of the
- interval.
-
- start and end extract the times the first and last
- observations were taken and frequency returns the
- number of samples per unit time.
-
- tsp(x) returns the vector
- c(start(x),end(x),frequency(x)). It is included for
- compatibility with the S language.
-
- _S_e_e _A_l_s_o:
-
- ts.
-
- _E_x_a_m_p_l_e_s:
-
- # a simple series plot
- plot(time(x), x, type="l")
-
-