% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{ensure_horizon_schema}
\alias{ensure_horizon_schema}
\title{Coerce a horizons-like data.frame to the canonical schema}
\usage{
ensure_horizon_schema(h)
}
\arguments{
\item{h}{Input data.frame or data.table.}
}
\value{
A \code{data.table}.
}
\description{
Adds any missing canonical columns as NAs of the right type and reorders
canonical columns first. Extra user-supplied columns are preserved at the
end. Coerces character values to numeric where the schema requires it.
}
\keyword{internal}
