Ratio of NA to non NA

prop_na(x)

Arguments

x

A vector or matrix or array

Value

numeric

Examples

prop_na(c(1,NA, 2, NA, 3))
#> [1] 0.4