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

