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

