Last chance! 50% off unlimited learning
Sale ends in
Find the proportion of values of x
that are NA
.
prop_na(x)
The proportion of values of x
that are NA
.
A vector to check.
mean(is.na(x))
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()
prop_na(c("VT", "NH", NA, "ME"))
Run the code above in your browser using DataLab