

window {base}                                R Documentation

_T_i_m_e _W_i_n_d_o_w_s

_D_e_s_c_r_i_p_t_i_o_n_:

     `window' is a generic function which extracts the sub-
     set of the object `x' observed between the times
     `start' and `end'.  Methods are available for time
     series and point-processes.

_U_s_a_g_e_:

     window(x, start=NULL, end=NULL, warn=TRUE)

_A_r_g_u_m_e_n_t_s_:

       x: a time-series or other object.

   start: the start time of the period of interest.

     end: the end time of the period of interest.

    warn: if `FALSE' omit warnings about `start' and `end'
          being out of range.

_N_o_t_e_:

     The `warn' argument is for use by lazy R programmers
     whose code requires `window' to do the checking
     silently.

_S_e_e _A_l_s_o_:

     `time', `ts'.

_E_x_a_m_p_l_e_s_:

     data(presidents)
     sixties <- window(presidents, 1960, c(1969,4))

