% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core.R
\name{validate_input}
\alias{validate_input}
\title{Validate inputs before explosion}
\usage{
validate_input(sf_obj, region_col, allow_other = FALSE, fix_invalid = TRUE)
}
\arguments{
\item{sf_obj}{sf object to validate}

\item{region_col}{Name of the grouping column}

\item{allow_other}{If TRUE, permits units labelled "Other"}

\item{fix_invalid}{If TRUE, attempts st_make_valid() on invalid geometries}
}
\value{
The (possibly repaired) sf object, invisibly
}
\description{
Checks CRS, empty geometries, invalid geometries, region count, and
unmatched "Other" units. Optionally repairs invalid geometries.
}
\keyword{internal}
