| cc {mice} | R Documentation |
Extracting complete cases is also known as 'listwise deletion' or
'complete case analyses'. cc(x) is equivalent to
na.omit(x). Missing values in x are coded as NA.
The companion function for selecting the incomplete cases is ic().
cc(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 complete
cases.
Stef van Buuren, 2010.
na.omit, ic, cci, ici,
ccn, icn
cc(nhanes) # get the 13 complete cases cc(nhanes[,2,drop=FALSE], drop=FALSE) # extract complete bmi as column