Skip to contents

Calculates the number of complete cases.

Usage

ncc(x)

Arguments

x

An R object. Currently supported are methods for the following classes: mids, data.frame and matrix. Also, x can be a vector.

Value

Number of elements in x with complete data.

See also

Author

Stef van Buuren, 2017

Examples

ncc(nhanes) # 13 complete cases
#> [1] 13