Learn R Programming

pmxTools (version 1.3)

count_na: Count the number of NA values in a vector.

Description

Count the number of NA values in a vector.

Usage

count_na(x)

Value

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

Arguments

x

A vector.

Author

Justin Wilkins, justin.wilkins@occams.com

Examples

Run this code
if (FALSE) {
 count_na(c(0,5,7,NA,3,3,NA))
}

Run the code above in your browser using DataLab