Learn R Programming

MLMusingR (version 0.4.0)

nmiss: Amount of missing data per variable

Description

Amount of missing data per variable

Usage

nmiss(dat)

Value

By default, this function will print the following items to the console

  • The percent of missing data per variable.

  • The percent of complete cases (range: 0 to 1).

  • Suggested number of datasets to impute when using multiple imputation.

Arguments

dat

Data frame that you want to inspect.

Examples

Run this code
data(mtcars)
mtcars[c(2:3), 4] <- NA #create NAs
nmiss(mtcars)

Run the code above in your browser using DataLab