rt2ri              package:TargetSearch              R Documentation

_R_e_t_e_n_t_i_o_n _T_i_m_e _t_o _R_e_t_e_n_t_i_o_n _T_i_m_e _I_n_d_e_x _c_o_n_v_e_r_t_i_o_n

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

     Convert retention times to retention indices based on observed
     FAME RI and their standard values.

_U_s_a_g_e:

     rt2ri(rtTime, observed, standard)

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

  rtTime: The extracted RT's to convert 

observed: The observed FAME RT's 

standard: The standard RI for each FAME 

_D_e_t_a_i_l_s:

     Linear interpolation, interpolation outside bounds are done with
     continued linear interpolation from the last two FAME's

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

     The converted RI

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

     Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig

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

     'RIcorrect', 'FAMEoutliers'

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

       # RI standards
       standard <- c(100, 200, 300, 400, 500)
       # observed standard retention times
       observed <- c(10.4, 19.3, 32.4, 40.2, 50.3)
       # a random set of retention times
       RT       <- runif(100,1,60)   
       # the corrected RIs
       RI       <- rt2ri(RT, observed, standard)

