Extracts incomplete cases from a data set. Missing values
in x are coded as NA. The companion function
for selecting the complete cases is cc().
Usage
ic(x, drop = TRUE)
Arguments
x
An R object. Currently supported are
methods for the following classes: mids,
mira, mipo, data.frame and
matrix. In addition, x can be a vector of
any kind.
drop
A logical flag for matrices and arrays. If
drop=TRUE the result is coerced to the lowest
possible dimension.
Value
A vector, matrix of data.frame
containing the data of the incomplete cases.
ic(nhanes) # get the 12 rows with incomplete casesic(nhanes[1:10,]) # incomplete cases within the first ten rowsic(nhanes[,2:3]) # restrict extraction to variables bmi and hyp