check_missing_values: Check for Missing Values in Data Frame

View source: R/check_missing_values.R

check_missing_valuesR Documentation

Check for Missing Values in Data Frame

Description

This function checks for missing values in a data frame and prints out the names of the columns with missing values and their counts.

Usage

check_missing_values(df)

Arguments

df

A data frame to check for missing values.

Value

A message indicating if missing values were found or not.

Examples

df <- data.frame(w = c(7, 8, 180, 7), x = c("a", "b", "c", "a"),
                 y = c(4, 5, -6, 4), z = c(7, 8, NA, 7))
check_missing_values(df)


fixr documentation built on April 4, 2025, 12:30 a.m.