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)


naniar documentation built on May 29, 2024, 1:43 a.m.