Proportion of values that are NA.

mean_na(v)

Arguments

v

A vector.

Value

A double, mean(is.na(v)).