Learn R Programming

naniar (version 1.0.0)

pct_miss: Return the percent of missing values

Description

This is shorthand for mean(is.na(x)) * 100

Usage

pct_miss(x)

Value

numeric the percent of missing values in x

Arguments

x

vector or data.frame

Examples

Run this code

pct_miss(airquality)
pct_miss(airquality$Ozone)

Run the code above in your browser using DataLab