

lag {ts}                                     R Documentation

_L_a_g _a _T_i_m_e _S_e_r_i_e_s

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

     Computed a lagged version of a time series, shifting
     the time base back by `k' observations.

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

     lag(x, ...)
     lag.default(x, k=1)

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

       x: A vector or matrix or univariate or multivariate
          time series

       k: The number of lags (in units of observations).

     ...: Arguments for future methods.

_D_e_t_a_i_l_s_:

     Vector or matrix arguments `x' are coerced to time
     series.

_V_a_l_u_e_:

     A time series object.

_N_o_t_e_:

     Note the sign of `k': a series lagged by a positive `k'
     starts earlier.

_A_u_t_h_o_r_(_s_)_:

     B.D. Ripley

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

     `diff', `deltat'

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

     data(UKLungDeaths)
     lag(ldeaths, 12) # starts one year earlier

