Skip to contents

Substitute for sum(is.na(data))

Usage

n_miss(x)

Arguments

x

a vector

Value

numeric the number of missing values

Examples


n_miss(airquality)
#> [1] 44
n_miss(airquality$Ozone)
#> [1] 37