Learn R Programming

SciencesPo (version 1.4.1)

CountMissing: Count missing data.

Description

Function to count missing data.

Usage

CountMissing(.data, vars = NULL, prop = TRUE, exclude.complete = TRUE)

Arguments

.data
the data frame.
vars
vector with name of variables.
prop
logical. If this is TRUE will show share of missing data by variable.
exclude.complete
Logical. Exclude complete variables from the output.

Examples

Run this code

CountMissing(marriage, prop = FALSE)

Run the code above in your browser using DataLab