aveSpec               package:PROcess               R Documentation

_C_o_m_p_u_t_e _m_e_a_n _s_p_e_c_t_r_u_m _o_f _a _s_e_t _o_f _s_p_e_c_t_r_a

_D_e_s_c_r_i_p_t_i_o_n:

     Compute mean spectrum of a set of spectra.

_U_s_a_g_e:

     aveSpec(nVec)

_A_r_g_u_m_e_n_t_s:

    nVec: A character vector of file names.

_D_e_t_a_i_l_s:

     'aveSpec' computes the point-wise mean of intensities of  a set of
     spectra over the whole range of the m/z values.

_V_a_l_u_e:

     A matrix with 2 columns, the first being the m/z values and the
     2nd being the average of intensities corresponding to the m/z
     value in the first column of the same row.

_A_u_t_h_o_r(_s):

     Xiaochun Li

_E_x_a_m_p_l_e_s:

     testfs <- dir(system.file("Test", package = "PROcess"),
             full.names=TRUE)
     testAve <- aveSpec(testfs)

