% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-validation.R
\name{field}
\alias{field}
\title{Construct a field specification for data frame validation}
\usage{
field(name, type = NULL, required = TRUE)
}
\arguments{
\item{name}{A \code{character} value giving the column name.}

\item{type}{A function used to check the column's type (e.g. \code{is.numeric}).
If \code{NULL}, no type check is performed.}

\item{required}{A \code{logical} value indicating whether the column must be
present. Defaults to \code{TRUE}.}
}
\value{
A named \code{list} with elements \code{name}, \code{type}, and \code{required}.
}
\description{
Construct a field specification for data frame validation
}
\keyword{internal}
