countMissing: Count missing values (NA) in a dataframe

View source: R/countMissing.R

countMissingR Documentation

Count missing values (NA) in a dataframe

Description

This function takes a dataframe as input and returns a tibble summarizing the number of missing values (NA) in each column and the number of rows with at least one missing value.

Usage

countMissing(df)

Arguments

df

A dataframe to analyze.

Value

A tibble with the following columns:

  • NA_<column_name>: Number of NAs in each original column

  • missing_rows: Number of rows with at least one NA across all columns


imt documentation built on Sept. 11, 2024, 5:41 p.m.