diffFilter-methods          package:mscalib          R Documentation

_R_e_m_o_v_e _m_a_s_s _d_i_f_f_e_r_e_n_c_e_s

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

     The function 'diffFilter' removes mass differences which can be
     observed in the 'Massvectorlist-class' or 'Massvector-class' and
     are given in the argument 'oby'.

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

     obx: 'Massvectorlist-class' or 'Massvector-class'

     oby: 'Massvector-class' as obtained by the call to function
          'getdiff-methods' and 'gamasses-methods'

  higher: default = 'TRUE' -  higher mass contributing to the mass
          difference will be removed from the code. (lower otherwise)

   error: How strongly a difference is allowed to deviate from the
          difference provided by 'oby'

  errorI: 

   prune: default=TRUE - remove 'higher' or lower mass or all other
          masses otherwise

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


     _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" ~~describe this method
          here 

     _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" ~~describe this method here 

_A_u_t_h_o_r(_s):

_R_e_f_e_r_e_n_c_e_s:

     'getdiff-methods'

_S_e_e _A_l_s_o:

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

     library(msbase)
     library(mscalib)

     data(pldata)

     tmp <- getdiff(pldata[[1]],ra=c(0,100))
     hist(tmp)
     tmp <- gamasses(tmp,abund=4)

     ## now remove the higher mass which contributes
     ## to the mass difference from the dataset

     diffFilter(pldata,tmp,higher=TRUE)
     diffFilter(pldata[[1]],tmp,higher=TRUE)

