home *** CD-ROM | disk | FTP | other *** search
-
- _F_i_n_d _C_o_m_p_l_e_t_e _C_a_s_e_s
-
- complete.cases(...)
-
- _A_r_g_u_m_e_n_t_s:
-
- ... : a sequence of vectors, matrices and data
- frames.
-
- _V_a_l_u_e:
-
- A vector specifying which observations/rows have no
- missing values across the entire sequence.
-
- _S_e_e _A_l_s_o:
-
- na.omit, na.fail.
-
- _E_x_a_m_p_l_e_s:
-
- # x is a regression design matrix
- # y is the corresponding response
- ok <- complete.cases(x,y)
- x <- x[ok,]
- y <- y[ok]
-
-