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

