tfExpand               package:tframe               R Documentation

_E_x_p_a_n_d _a _T_f_r_a_m_e _o_r _T_f_r_a_m_e_d _O_b_j_e_c_t.

_D_e_s_c_r_i_p_t_i_o_n:

     Expand a tframe or tframed object.

_U_s_a_g_e:

         tfExpand(x, add.start = 0, add.end = 0)
         ## Default S3 method:
         tfExpand(x, add.start = 0, add.end = 0)
         ## S3 method for class 'tframe':
         tfExpand(x, add.start = 0, add.end = 0)

         tfTruncate(x, start=NULL, end=NULL)
         ## Default S3 method:
         tfTruncate(x, start=NULL, end=NULL)
         ## S3 method for class 'tframe':
         tfTruncate(x, start=NULL, end=NULL)

_A_r_g_u_m_e_n_t_s:

       x: A tframe or tframed object.

   start: an integer indicating the position at which the new tframe is
          to start.

     end: an integer indicating the position at which the new tframe is
          to end.

add.start: an integer indicating the number of periods on the
          beginning.

 add.end: an integer indicating the number of periods on the end.

_D_e_t_a_i_l_s:

     These methods are like tfwindow but use position indicators
     (rather  than dates) and work with a tframe or tframed data.
     Applied to a tframe they return an adjusted tframe. Applied to a
     tframed object they return an adjusted object with its adjusted
     tframe.They are low level utilities for other functions.

_V_a_l_u_e:

     A tframe or tframed object.

_S_e_e _A_l_s_o:

     'tfwindow' 'tframed'

_E_x_a_m_p_l_e_s:

         z <- ts(rnorm(100), start=c(1982,1), frequency=12)
         Dz <- tframed(diff(z), tfTruncate(tframe(z), start=2))
         tframe(Dz)
         IDz <- tframed(cumsum(c(0, Dz)), tfExpand(tframe(Dz), add.start=1))
         tframe(IDz)
         tframe(tfTruncate(z, start=5))

