prop_na: Proportion missing

Description Usage Arguments Details Value See Also Examples

View source: R/counters.R

Description

Find the proportion of values of x that are NA.

Usage

1

Arguments

x

A vector to check.

Details

mean(is.na(x))

Value

The proportion of values of x that are NA.

See Also

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

Examples

1
prop_na(c("VT", "NH", NA, "ME"))

campfin documentation built on April 13, 2021, 1:07 a.m.