validate_na_empty: Validate Column for NA and Empty Values

View source: R/validations.R

validate_na_emptyR Documentation

Validate Column for NA and Empty Values

Description

This function checks if a specified column in a data frame contains either NA or empty values.

Usage

validate_na_empty(df, col_name, verbose = TRUE)

Arguments

df

A data frame.

col_name

A character string specifying the name of the column to check.

verbose

A logical indicating whether to print informative messages. Default is TRUE.

Value

Number of issues

Examples

df <- data.frame(A = c("a", "", NA, "d"), B = 1:4)
validate_na_empty(df, "A")


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