tbl_na: tbl_na

View source: R/tbl_na.R

tbl_naR Documentation

tbl_na

Description

Check the number of NAs for all columns and provide a summary view.

Usage

tbl_na(x, pivot = TRUE, drop_zeros = TRUE)

Arguments

x

Dataframe.

pivot

Logical whether to pivot the output to long data format.

drop_zeros

Logical whether to drop groups or columns with zero missing values.

Value

Wide or long format dataframe with the count of zeros across all the columns in the original dataset.

Examples

tibble::tibble(a = c(1, 2, NA),
               b = c(NA, NA, 'Q'),
               c = c(3, 2, 1)) %>%
    tbl_na(pivot = TRUE,
           drop_zeros = FALSE)

toddellis/miao documentation built on June 1, 2025, 10:11 p.m.