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

View source: R/count_na.R

count_naR Documentation

Count the number of NA values in a vector.

Description

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(s)

Justin Wilkins, justin.wilkins@occams.com

Examples

## Not run: 
 count_na(c(0,5,7,NA,3,3,NA))

## End(Not run)


pmxTools documentation built on March 7, 2023, 7:58 p.m.