Learn R Programming

naniar (version 0.6.0)

pct_miss: Return the percent of missing values

Description

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

Usage

pct_miss(x)

Arguments

x

vector or data.frame

Value

numeric the percent of missing values in x

Examples

Run this code
# NOT RUN {
pct_miss(airquality)
pct_miss(airquality$Ozone)

# }

Run the code above in your browser using DataLab