% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blank_check.R
\name{blank_check}
\alias{blank_check}
\title{Check Blank Values}
\usage{
blank_check(data, trim = TRUE)
}
\arguments{
\item{data}{A data.frame.}

\item{trim}{Logical. If TRUE, strings containing only
whitespace are treated as blank. Default is TRUE.}
}
\value{
A data.frame of class \code{BlankCheck}
containing variable-level blank-value diagnostics.
}
\description{
Identifies blank values in character and factor variables.
}
\details{
Blank values are evaluated only for character and factor
variables. Missing values (\code{NA}) are reported
separately and are not counted as blank values.

When \code{trim = TRUE}, leading and trailing whitespace
is removed before checking whether a value is blank.
Therefore values such as \code{" "}, \code{"   "}, and
\code{"\\t"} are classified as blank.
}
\examples{
dat <- data.frame(
  name = c("Dog", "", "Cat", "   ", NA),
  value = 1:5,
  stringsAsFactors = FALSE
)

blank_check(dat)

blank_check(dat, trim = FALSE)

}
