home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / Comparison < prev    next >
Encoding:
Text File  |  1997-04-23  |  604 b   |  28 lines

  1.     
  2.     _R_e_l_a_t_i_o_n_a_l _O_p_e_r_a_t_o_r_s
  3.     
  4.          x < y
  5.          x > y
  6.          x <= y
  7.          x >= y
  8.          x == y
  9.          x != y
  10.     
  11.     _V_a_l_u_e:
  12.     
  13.          These binary operators allow the comparison of values
  14.          in vectors.  They return a vector of logicals indicat-
  15.          ing the result of the element by element comparison.
  16.          The elements of shorter vectors are recycled as neces-
  17.          sary.
  18.     
  19.          Objects such as arrays or time-series can be compared
  20.          this way provided they are conformable.
  21.     
  22.     _E_x_a_m_p_l_e_s:
  23.     
  24.          x <- rnorm(20)
  25.          x < 1
  26.          x[x > 0]
  27.     
  28.