% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/case_check.R
\name{case_check}
\alias{case_check}
\title{Check Case Consistency}
\usage{
case_check(data, variable)
}
\arguments{
\item{data}{A data.frame.}

\item{variable}{A single character string specifying the
variable to check.}
}
\value{
A data.frame of class \code{CaseCheck} containing
row-level case-consistency diagnostics.
}
\description{
Detects values in a character or factor variable that
differ only in letter case.
}
\details{
Values are compared after conversion to lower case.
Therefore, values such as \code{"Dog"}, \code{"dog"},
and \code{"DOG"} are treated as belonging to the same
normalized category.

A value is flagged when more than one distinct original
representation exists for the same normalized value.

Missing values are reported separately and are not
classified as case inconsistencies.

The function does not modify the original data.
}
\examples{
dat <- data.frame(
  Species = c("Dog", "dog", "DOG", "Cat", "Cat", NA)
)

case_check(
  dat,
  variable = "Species"
)

}
