## S3 method for class 'data.frame':
cc(x, drop = TRUE)
## S3 method for class 'matrix':
cc(x, drop = TRUE)
## S3 method for class 'mids':
cc(x, drop = TRUE)
## S3 method for class 'data.frame':
ic(x, drop = TRUE)
## S3 method for class 'matrix':
ic(x, drop = TRUE)
## S3 method for class 'mids':
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 androp=TRUE
the result is coerced to the lowest possible
dimension.cc
) or the incomplete cases (ic
).cc()
is
equivalent to na.omit()
. Missing values in x
are coded
as NA.na.omit
, cci
, ici
,
code{ccn}, code{link{icn}}cc(nhanes) # get the 13 complete cases
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
cc(nhanes[,2,drop=FALSE], drop=FALSE) # extract complete bmi as column
Run the code above in your browser using DataLab