This function returns the number of missing values (NA
) in the input vector.
Examples
if(interactive()){
util_count_missing(c(1, 2, 3)) # returns 0
util_count_missing(c(1, NA, 2)) # returns 1
}
This function returns the number of missing values (NA
) in the input vector.
if(interactive()){
util_count_missing(c(1, 2, 3)) # returns 0
util_count_missing(c(1, NA, 2)) # returns 1
}