home *** CD-ROM | disk | FTP | other *** search
-
- _R_e_l_a_t_i_o_n_a_l _O_p_e_r_a_t_o_r_s
-
- 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]
-
-