Trivial function to count number of non-NA values in input

getNOK(x)

Arguments

x

is a vector of values

Value

numeric: the number of non-NA values in x

History/development log

Started before 5.iv.21

See also

getNNA for count of missing values

Other counting functions: getNNA()

Other data checking functions: checkAllUnique(), getNNA(), isOneToOne()

Author

Chris Evans

Examples

getNOK(c(1:5, NA, 7:10))
#> [1] 9