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 / codes < prev    next >
Encoding:
Text File  |  1997-04-23  |  331 b   |  18 lines

  1.     
  2.     _F_a_c_t_o_r _C_o_d_e_s
  3.     
  4.          codes(x)
  5.          codes(x) <- y
  6.     
  7.     _V_a_l_u_e:
  8.     
  9.          THis function retrieves the underlying integer codes
  10.          used for the levels of a factor and also be used to
  11.          reset (a subset of) these codes.
  12.     
  13.     _E_x_a_m_p_l_e_s:
  14.     
  15.          x <- gl(3,5,15)
  16.          codes(x)[3] <- 2
  17.     
  18.