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 / complete.cases < prev    next >
Encoding:
Text File  |  1997-04-23  |  562 b   |  28 lines

  1.     
  2.     _F_i_n_d _C_o_m_p_l_e_t_e _C_a_s_e_s
  3.     
  4.          complete.cases(...)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.              ... : a sequence of vectors, matrices and data
  9.                    frames.
  10.     
  11.     _V_a_l_u_e:
  12.     
  13.          A vector specifying which observations/rows have no
  14.          missing values across the entire sequence.
  15.     
  16.     _S_e_e _A_l_s_o:
  17.     
  18.          na.omit, na.fail.
  19.     
  20.     _E_x_a_m_p_l_e_s:
  21.     
  22.          # x is a regression design matrix
  23.          # y is the corresponding response
  24.          ok <- complete.cases(x,y)
  25.          x <- x[ok,]
  26.          y <- y[ok]
  27.     
  28.