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)

