profRange-methods            package:xcms            R Documentation

_S_p_e_c_i_f_y _a _s_u_b_s_e_t _o_f _p_r_o_f_i_l_e _m_o_d_e _d_a_t_a

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

     Specify a subset of the profile mode matrix given a mass, time, or
     scan range. Allow flexible user entry for other functions.

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

  object: the 'xcmsRaw' object

massrange: single numeric mass or vector of masses

timerange: single numeric time (in seconds) or vector of times 

scanrange: single integer scan index or vector of indecies

     ...: arguments to other functions

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

     This function handles selection of mass/time subsets of the
     profile matrix for other functions. It allows the user to specify
     such subsets in a variety of flexible ways with minimal typing.

     Because R does partial argument matching, 'massrange',
     'scanrange', and 'timerange' can be specified in short form using
     'm=', 's=', and 't=', respectively. If both a 'scanrange' and
     'timerange' are specified, then the 'timerange' specification
     takes precedence.

     When specifying ranges, you may either enter a single number or a
     numeric vector. If a single number is entered, then the closest
     single scan or mass value is selected. If a vector is entered,
     then the range is set to the 'range()' of the values entered. That
     allows specification of ranges using shortened, slightly
     non-standard syntax. For example, one could specify 400 to 500
     seconds using any of the following: 't=c(400,500)',
     't=c(500,400)', or 't=400:500'. Use of the sequence operator (':')
     can save several keystrokes when specifying ranges. However, while
     the sequence operator works well for specifying integer ranges,
     fractional ranges do not always work as well.

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

     A list with the folloing items:

massrange: numeric vector with start and end mass

 masslab: textual label of mass range

 massidx: integer vector of mass indecies

scanrange: integer vector with stat ane end scans

 scanlab: textual label of scan range

 scanidx: integer vector of scan range

timerange: numeric vector of start and end times

 timelab: textual label of time range

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

     _o_b_j_e_c_t = "_x_c_m_s_R_a_w" 'profRange(object, massrange = numeric(),
          timerange = numeric(), scanrange = numeric(), ...)'

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

     'xcmsRaw-class'

