ic {mice} | R Documentation |
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()
.
ic(x, drop = TRUE)
x |
An |
drop |
A logical flag for matrices and arrays. If |
A vector
, matrix
of data.frame
containing the data of the incomplete
cases.
Stef van Buuren, 2010.
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