pct_miss {naniar}R Documentation

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


pct_miss(airquality)
pct_miss(airquality$Ozone)


[Package naniar version 1.1.0 Index]