Find the proportion of values of x
that are NA
.
Arguments
- x
A vector to check.
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
prop_na(c("VT", "NH", NA, "ME"))
#> [1] 0.25