Learn R Programming

naniar (version 1.0.0)

n_miss: Return the number of missing values

Description

Substitute for sum(is.na(data))

Usage

n_miss(x)

Value

numeric the number of missing values

Arguments

x

a vector

Examples

Run this code

n_miss(airquality)
n_miss(airquality$Ozone)

Run the code above in your browser using DataLab