lag                    package: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

