powered by
This function returns the number of missing values (NA) in the input vector.
NA
util_count_missing(x)
The number of missing values in the input vector.
A vector.
if(interactive()){ util_count_missing(c(1, 2, 3)) # returns 0 util_count_missing(c(1, NA, 2)) # returns 1 }
Run the code above in your browser using DataLab