% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats_model_helpers.R
\name{.is_numeric_trycatch}
\alias{.is_numeric_trycatch}
\title{Check if input is numeric-like using tryCatch}
\usage{
.is_numeric_trycatch(x)
}
\arguments{
\item{x}{A vector to test for numeric coercion.}
}
\value{
Logical \code{TRUE} if \code{x} is numeric-like, \code{FALSE} otherwise.
}
\description{
Tests whether a vector \code{x} can be safely coerced to numeric without
producing \code{NA}s (excluding original \code{NA}s) or warnings.

This function attempts to coerce the input to numeric and returns \code{TRUE}
if all non-missing elements convert without coercion failure; otherwise \code{FALSE}.
It catches warnings and errors during coercion and treats those as non-numeric.
}
\keyword{internal}
