Count the total values of x
that are NA
.
count_na(x)
A vector to check.
The sum of x
that are NA
sum(is.na(x))
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()
# NOT RUN {
count_na(c("VT", "NH", NA, "ME"))
# }
Run the code above in your browser using DataLab