
x
are coded
as NA
.
The companion function for selecting the complete cases is cc()
.ic(x, drop = TRUE)
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=TRUE
the
result is coerced to the lowest possible dimension.vector
, matrix
of data.frame
containing the data of the incomplete
cases.na.omit
, cc
, cci
, ici
,
ccn
, icn
ic(nhanes) # get the 12 rows with incomplete cases
ic(nhanes[1:10,]) # incomplete cases within the first ten rows
ic(nhanes[,2:3]) # restrict extraction to variables bmi and hyp
Run the code above in your browser using DataLab