Learn R Programming

naniar (version 0.6.0)

n_miss: Return the number of missing values

Description

Substitute for sum(is.na(data))

Usage

n_miss(x)

Arguments

x

a vector

Value

numeric the number of missing values

Examples

Run this code
# NOT RUN {
n_miss(airquality)
n_miss(airquality$Ozone)

# }

Run the code above in your browser using DataLab