% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/range_check.R
\name{range_check}
\alias{range_check}
\title{Check Values Against a Valid Range}
\usage{
range_check(data, variable, min = NULL, max = NULL)
}
\arguments{
\item{data}{A data.frame.}

\item{variable}{Character string giving the name of the
numeric variable to check.}

\item{min}{Optional numeric lower limit. Default is
\code{NULL}.}

\item{max}{Optional numeric upper limit. Default is
\code{NULL}.}
}
\value{
A data.frame of class \code{RangeCheck}
containing row-level range diagnostics.
}
\description{
Identifies values in a numeric variable that fall below
or above user-defined valid limits.
}
\details{
At least one of \code{min} or \code{max} must be
supplied.

Missing values are not classified as out-of-range.
Infinite values are evaluated against the specified
limits and will normally be flagged when an appropriate
finite limit is supplied.
}
\examples{
dat <- data.frame(
  Temperature = c(38.5, 39.2, 44.0, 34.0, NA)
)

range_check(
  dat,
  variable = "Temperature",
  min = 35,
  max = 43
)

}
