Count non-NA values in a vector

count_non_na(x)

Arguments

x

vector

Value

number of non-NA values in the vector, 0 if there are none