naniar (version 0.4.2)

prop_miss: Return the proportion of missing values

Description

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

Usage

prop_miss(x)

Arguments

x

vector or data.frame

Value

numeric the proportion of missing values in x

Examples

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

# }

Run the code above in your browser using DataLab