findEqualGreater            package:xcms            R Documentation

_F_i_n_d _v_a_l_u_e_s _i_n _s_o_r_t_e_d _v_e_c_t_o_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     Find values in sorted vectors.

_U_s_a_g_e:

     findEqualGreater(x, value)
     findEqualLess(x, value)
     findEqualGreaterM(x, values)
     findRange(x, values, NAOK = FALSE)

_A_r_g_u_m_e_n_t_s:

       x: numeric vector sorted in increasing order

   value: value to find in 'x'

  values: numeric values to find in 'x'

    NAOK: don't check for NA values in 'x'

_D_e_t_a_i_l_s:

     'findEqualGreater' finds the index of the first value in 'x' that
     is equal or greater than 'value'. 'findEqualLess' does same except
     that it finds equal or less. 'findEqualGreaterM' creates an index
     of a vector by finding specified values. 'findRange' locates the
     start and stop indicides of a range of two 'x' values.

     The only things that save time at this point are
     'findeEqualGreaterM' (when the length of values approaches the
     lenght of x) and 'findRange' (when 'NAOK' is set to TRUE). They
     run in log(N) and N time, respectively.

_V_a_l_u_e:

     An integer vector with the position(s) of the values(s).

_A_u_t_h_o_r(_s):

     Colin A. Smith, csmith@scripps.edu

