extendLength         package:MassSpecWavelet         R Documentation

_E_x_t_e_n_d _t_h_e _l_e_n_g_t_h _o_f _a _s_i_g_n_a_l _o_r _m_a_t_r_i_x

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

     Extend the length of a signal or matrix by row

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

     extendLength(x, addLength = NULL, method = c("reflection", "open", "circular"), direction = c("right", "left", "both"))

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

       x: a vector or matrix with column with each column as a signal 

addLength: the length to be extended 

  method: three methods available, c("reflection", "open", "circular").
          By default, it is "reflection". 

direction: three options available: c("right", "left", "both") 

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

     return the extended vector or matrix.

_A_u_t_h_o_r(_s):

     Pan Du

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

     'extendNBase'

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

             # a = matrix(rnorm(9), 3)
             # extendLength(a, 3, direction='right')         ## not exposed function

