powered by
Extracts incomplete cases from a data set. The companion function for selecting the complete cases is cc.
cc
ic(x)
A vector, matrix or data.frame containing the data of the complete cases.
vector
matrix
data.frame
An R object. Methods are available for classes mids, data.frame and matrix. Also, x could be a vector.
R
mids
x
Stef van Buuren, 2017.
cc, ici
ici
ic(nhanes) # get the 12 rows with incomplete cases ic(nhanes[1:10, ]) # incomplete cases within the first ten rows ic(nhanes[, c("bmi", "hyp")]) # restrict extraction to variables bmi and hyp
Run the code above in your browser using DataLab