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

prop_miss(x)

Arguments

x vector or data.frame

Value

numeric the proportion of missing values in x

Examples


prop_miss(airquality)#> [1] 0.04793028prop_miss(airquality\$Ozone)#> [1] 0.2418301