R/utils.R

Defines functions .to_numeric

#' @keywords internal
#' @noRd
.to_numeric <- function(x) {
  tryCatch(as.numeric(as.character(x)),
    error = function(e) x,
    warning = function(w) x
  )
}
easystats/estimate documentation built on April 4, 2024, 9:22 a.m.