CountCompCases: Count Complete Cases

View source: R/DescTools.r

CountCompCasesR Documentation

Count Complete Cases

Description

Return for each variable of a data frame the number of missing values and the complete cases to be expected if this variable would be omitted.

Usage

CountCompCases(x)

## S3 method for class 'CountCompCases'
print(x, digits=1, ...)

Arguments

x

a data.frame containg the data.

digits

the number of digits to be used when printing the results.

...

the dots are not further used.

Value

A list with three elements. The first gives the number of rows, the second the number of complete cases for the whole data frame. The third element tab contains the data for the single variables.

Author(s)

Andri Signorell <andri@signorell.net>

See Also

PlotMiss, CompleteColumns, complete.cases, is.na, na.omit

Examples

CountCompCases(d.pizza)

AndriSignorell/DescTools documentation built on March 18, 2024, 3:44 p.m.