Learn R Programming

imt (version 1.0.0)

countMissing: 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)

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

Arguments

df

A dataframe to analyze.