check_missing_values: Check for Missing Values in a Data Frame Column

View source: R/validations.R

check_missing_valuesR Documentation

Check for Missing Values in a Data Frame Column

Description

This function checks for missing values in a specified column of a data frame. It returns TRUE if there are no missing values in the column, and FALSE otherwise.

Usage

check_missing_values(df, column)

Arguments

df

A data frame in which the column to be checked is located.

column

The name of the column to check for missing values, as a string.

Value

A boolean value; TRUE if the specified column has no missing values, FALSE if it does.

Examples

data <- data.frame(a = c(1, 2, NA, 4), b = c("A", "B", "C", "D"))
check_missing_values(data, "a") # returns TRUE
check_missing_values(data, "b") # returns FALSE


MoTrPAC/MotrpacBicQC documentation built on Sept. 26, 2024, 11:10 a.m.