% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{infer_col_type}
\alias{infer_col_type}
\title{Infer the logical type of a character column}
\usage{
infer_col_type(x, threshold = 0.9)
}
\arguments{
\item{x}{Character vector to classify (as read from a CSV or FWF file).}

\item{threshold}{Numeric. Minimum proportion of non-empty values that must
parse as numeric for the column to be classified as \code{"numeric"}.
Defaults to \code{0.90}. Configurable via \code{type_inference_threshold}
in \code{rule_overrides}.}
}
\value{
A single character string: \code{"date"}, \code{"numeric"},
  \code{"character"}, or \code{"unknown"}.
}
\description{
Classifies a character vector as \code{"date"}, \code{"numeric"},
\code{"character"}, or \code{"unknown"} by applying rules in priority order.
}
\examples{
infer_col_type(c("2024-01-01", "2024-06-15"))   # "date"
infer_col_type(c("1.5", "2.0", "3.1"))          # "numeric"
infer_col_type(c("high", "low", "medium"))       # "character"
infer_col_type(c(NA, "", NA))                    # "unknown"
infer_col_type(c(rep("1", 17), "a", "b", "c"), threshold = 0.80)  # "numeric"

}
