ic: Select incomplete cases

Description Usage Arguments Value Author(s) See Also Examples

View source: R/cc.R

Description

Extracts incomplete cases from a data set. The companion function for selecting the complete cases is cc.

Usage

1
ic(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

cc, ici

Examples

1
2
3
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

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

Related to ic in mice...