Skip to contents

Count the number of NA values in a vector.

Usage

count_na(x)

Arguments

x

A vector.

Value

An integer containing the number of NA values in the input vector.

Author

Justin Wilkins, justin.wilkins@occams.com

Examples

if (FALSE) { # \dontrun{
 count_na(c(0,5,7,NA,3,3,NA))
} # }