align-methods           package:timeSeries           R Documentation

_t_i_m_e_S_e_r_i_e_s _C_l_a_s_s, _F_u_n_c_t_i_o_n_s _a_n_d _M_e_t_h_o_d_s

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

     Aligns a 'timeSeries' Object.

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

     ## S4 method for signature 'timeSeries':
     align(x, by = "1d", offset = "0s",
         method = c("before", "after", "interp", "fillNA"),
         include.weekends = FALSE)

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

       x: an object of class 'timeSeries'. 

      by: a character string denoting the period 

  offset: a character string denoting the offset 

  method: a character string denoting the alignment approach. 

include.weekends: a logical flag, should weekend be included. 

_V_a_l_u_e:

     returns an aligned S4 object of class 'timeSeries'.

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

     ## data -
        x <- as.timeSeries(data(msft.dat))   

