cc: Select complete cases

Description Usage Arguments Value Author(s) See Also Examples

View source: R/cc.R

Description

Extracts the complete cases, also known as listwise deletion. cc(x) is similar to na.omit(x), but returns an object of the same class as the input data. Dimensions are not dropped. For extracting incomplete cases, use ici.

Usage

1
cc(x)

Arguments

x

An R object. Methods are available for classes mids, data.frame and matrix. Also, x could be a vector.

Value

A vector, matrix or data.frame containing the data of the complete cases.

Author(s)

Stef van Buuren, 2017.

See Also

na.omit, cci, ici

Examples

1
2
# cc(nhanes)   # get the 13 complete cases
# cc(nhanes$bmi) # extract complete bmi

mice documentation built on Nov. 14, 2020, 5:07 p.m.

Related to cc in mice...