Count the number of non-NA observations in a vector

n(x)

Arguments

x

a vector

Value

the number of non-NA observations in x as an integer.