Skip to contents

Trivial function to count number of NA values in input

Usage

getNNA(x)

Arguments

x

vector containing the values to check for NAs

Value

numeric: the number of NA values in

History/development log

Started before 5.iv.21

See also

getNOK for count of non-missing values

Other counting functions: getNOK()

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

Author

Chris Evans

Examples

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