Skip to contents

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


pct_miss(airquality)
#> [1] 4.793028
pct_miss(airquality$Ozone)
#> [1] 24.18301