tslag               package:fUtilities               R Documentation

_L_a_g_g_e_d _o_r _L_e_a_d_i_n_g _V_e_c_t_o_r/_M_a_t_r_i_x

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

     Creates a lagged or leading vector/matrix of selected order(s).

_U_s_a_g_e:

     tslag(x, k = 1, trim = FALSE)

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

       k: an integer value, the number of positions the new series is 
          to lag or to lead the input series.  

       x: a numeric vector or matrix, missing values are allowed. 

    trim: a logical flag, if TRUE, the missing values at the  beginning
          ans/or end of the returned series will be trimmed.  The
          default value is FALSE.  

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

     'pdl'.

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

     ## tslag -
        #                                       

