Learn R Programming

mice (version 2.25)

ccn: Complete cases n

Description

Calculates the number of complete cases. The companion function for calculating the number of incomplete cases is icn().

Usage

ccn(x)

Arguments

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

Value

An integer with the number of elements in x with complete data.

See Also

icn, cc, ic, cci, ici

Examples

Run this code
ccn(nhanes) # 13 complete cases

Run the code above in your browser using DataLab