na_count: Count NA frequency in data

View source: R/na_count.R

na_countR Documentation

Count NA frequency in data

Description

na_count() is a way to display the count and frequency of NA in data. It can be slow over large datasets.

Usage

na_count(data)

Arguments

data

a data frame

Value

a long-format tibble

Acknowledgment

I learned this way of exploring data though the excellent webinar taught by Emily Robinson. The original code is hosted here.

Examples

## Not run: 
na_data <- data.frame(c1 = c(1, NA), c2 = c(NA, NA))
na_data %>% na_count()

## End(Not run)

kguidonimartins/misc documentation built on Dec. 20, 2024, 7:03 p.m.