Same as sum(is.na(x))
, but without the allocation.
Count Missing Values in a Vector
Same as sum(is.na(x))
, but without the allocation.
count_missing(x)
vector()
Supported are logical, integer, double, complex and string vectors.
(integer(1)
) number of missing values.
# NOT RUN {
count_missing(c(1, 2, NA, 4, NA))
# }
Run the code above in your browser using DataLab