Skip to contents

Count the number of NA observations

Usage

count_na(x)

Arguments

x

A vector

Value

A numeric value

Examples


count_na(c(2,2,2))
#> [1] 0

count_na(c(2,2,NA))
#> [1] 1