count_na: Count missing

View source: R/counters.R

count_naR Documentation

Count missing

Description

Count the total values of x that are NA.

Usage

count_na(x)

Arguments

x

A vector to check.

Details

sum(is.na(x))

Value

The sum of x that are NA

See Also

Other counting wrappers: count_diff(), count_in(), count_out(), na_in(), na_out(), na_rep(), prop_distinct(), prop_in(), prop_na(), prop_out(), what_in(), what_out()

Examples

count_na(c("VT", "NH", NA, "ME"))

irworkshop/campfin documentation built on Oct. 19, 2023, 8:02 a.m.