fsetdiff-methods           package:msbase           R Documentation

_d_i_f_f_e_r_e_n_c_e

_D_e_s_c_r_i_p_t_i_o_n:

     Performs *set* (asymmetric!) difference on two Massvectors

_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.

_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" ...

     _o_b_x = "_M_a_s_s_v_e_c_t_o_r_l_i_s_t", _o_b_y = "_M_a_s_s_v_e_c_t_o_r" ...

_S_e_e _A_l_s_o:

     'Massvector-class' ,'Massvectorlist-class' ,'fintersect-methods'
     ,'setdiff'

_E_x_a_m_p_l_e_s:

     data(pldata)
     pl1 <- pldata[[1]]
     pl2 <- pldata[[4]]
     length(pl1)
     length(fsetdiff(pl1[,1,drop=TRUE],pl2[,1,drop=TRUE],error=0.1,ppm=FALSE))
     length(fsetdiff(pl1,pldata[[1]],error=0.1,ppm=FALSE))
     length(fsetdiff(pldata,pl1,error=0.1,ppm=FALSE)[[4]])

