Learn R Programming

naniar (version 1.0.0)

prop_miss: Return the proportion of missing values

Description

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

Usage

prop_miss(x)

Value

numeric the proportion of missing values in x

Arguments

x

vector or data.frame

Examples

Run this code

prop_miss(airquality)
prop_miss(airquality$Ozone)

Run the code above in your browser using DataLab