nmiss: Amount of missing data per variable

View source: R/nmiss.R

nmissR Documentation

Amount of missing data per variable

Description

Amount of missing data per variable

Usage

nmiss(dat)

Arguments

dat

Data frame that you want to inspect.

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.

Examples

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


MLMusingR documentation built on Jan. 11, 2023, 5:09 p.m.