The count of missing values in an atomic vector, equivalent to
to sum(is.na(x)).
Usage
sum_isna(x, do_anyNA = TRUE)
Arguments
x
An atomic vector.
do_anyNA
Should anyNA(x) be executed before an attempt to
count the NA's in x one-by-one? By default, set to TRUE,
since it is generally quicker. It will only be slower when NA is rare
and occurs late in x.