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 / levels < prev    next >
Encoding:
Text File  |  1997-04-23  |  566 b   |  22 lines

  1.     
  2.     _L_e_v_e_l _N_a_m_e_s _f_o_r _a _F_a_c_t_o_r
  3.     
  4.          levels(x)
  5.          levels(x) <- value
  6.     
  7.     _D_e_s_c_r_i_p_t_i_o_n:
  8.     
  9.          levels provides access to the levels attribute of fac-
  10.          tor.  The first form prints the levels of the observa-
  11.          tions and the second sets the levels.  In this case,
  12.          value must be a vector of character strings with length
  13.          equal to the number of levels of x.
  14.     
  15.          To find out how many levels a factor has user the func-
  16.          tion nlevels.
  17.     
  18.     _S_e_e _A_l_s_o:
  19.     
  20.          nlevels.
  21.     
  22.