fmatch-methods            package:msbase            R Documentation

_I_n_d_e_x _o_f _m_a_t_c_h_i_n_g _p_e_a_k_s

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

     Determines index of matching peaks.

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

     obx: see below in *Methods* section

     oby: see below in *Methods* section

   error: measurement error in _e.g._ Da or as relative error in parts
          per million (ppm)

     ppm: if 'TRUE' then error in parts per million(ppm), in arbitrary
          units otherwise.

    uniq: if 'TRUE' compute non-crossing matching.

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

   plind: index of matching peaks in argument 'obx'

  calind: index of matching peaks in argument 'oby'

   resid: residue between matching peaks (either in 'ppm' or 'Da') 

_M_e_t_h_o_d_s:

     _o_b_x = "_n_u_m_e_r_i_c", _o_b_y = "_n_u_m_e_r_i_c" ...

     _o_b_x = "_M_a_s_s_v_e_c_t_o_r", _o_b_y = "_M_a_s_s_v_e_c_t_o_r" ...

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

     data(pldata)
     pl1 <- pldata[[1]]
     pl2 <- pldata[[4]]
     fmatch(pl1,pl2,error=0.1,ppm=FALSE,uniq=TRUE)
     fmatch(pl1,pl2,error=150,ppm=TRUE,uniq=TRUE)

