getdiff-methods           package:mscalib           R Documentation

_C_o_m_p_u_t_e_s _a_l_l _m_a_s_s _d_i_f_f_e_r_e_n_c_e_s _i_n _a_n_d _m_a_s_s_v_e_c_t_o_r_l_i_s_t.

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

     Computes all mass differences in and 'Massvectorlist-class'. In
     addition computes the ratio of the intensities for each pair.

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

  object: either 'Massvectorlist-class' or 'Massvector-class'

      ra: 'numeric(2)' differences in what mass range should be
          computed

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


     _o_b_j_e_c_t = "_M_a_s_s_v_e_c_t_o_r_l_i_s_t" ... 

     _o_b_j_e_c_t = "_M_a_s_s_v_e_c_t_o_r" ... 

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

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

