

Comparison {base}                            R Documentation

_R_e_l_a_t_i_o_n_a_l _O_p_e_r_a_t_o_r_s

_U_s_a_g_e_:

     x < y
     x > y
     x <= y
     x >= y
     x == y
     x != y

_V_a_l_u_e_:

     These binary operators allow the comparison of values
     in vectors.  They return a vector of logicals indicat-
     ing the result of the element by element comparison.
     The elements of shorter vectors are recycled as neces-
     sary.

     Objects such as arrays or time-series can be compared
     this way provided they are conformable.

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

     x <- rnorm(20)
     x < 1
     x[x > 0]

