pct_miss: Return the percent of missing values

View source: R/n-prop-miss-complete.R

pct_missR 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)


njtierney/naniar documentation built on March 19, 2024, 9:48 p.m.