tfdiff                package:tframe                R Documentation

_T_i_m_e _S_e_r_i_e_s _D_i_f_f_e_r_e_n_c_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     Difference a tframed object.

_U_s_a_g_e:

         tfdiff(x, lag=1, differences=1)
         ## Default S3 method:
         tfdiff(x,lag=1, differences=1)
         ## S3 method for class 'tframe':
         tfdiff(x,lag=1, differences=1)
         ## S3 method for class 'tframed':
         diff(x,lag=1, differences=1, ...)

_A_r_g_u_m_e_n_t_s:

       x: a tframed object.

     lag: difference calculated relative to lag periods previous.

differences: order of differencing.

     ...: arguments to be passed to other methods.

_D_e_t_a_i_l_s:

     A time framed object is created by differencing the number of
     times indicated by differences at a lagged number of periods
     indicated by lag. The default is take the difference from data one
     period previous.

_S_e_e _A_l_s_o:

     'diff', 'lag'

_E_x_a_m_p_l_e_s:

         z <- ts(rnorm(100), start=c(1982,1), frequency=12)
         tfstart(z)
         tfperiods(z)
         z <- tfdiff(z)
         tfstart(z)
         tfperiods(z)

