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)

