R/as-parsed-model.R

Defines functions as_parsed_model.list as_parsed_model

Documented in as_parsed_model

#' Prepares parsed model object
#' 
#' @param x A parsed model object
#' 
#' @export
as_parsed_model <- function(x) {
  UseMethod("as_parsed_model")
}

#' @export
as_parsed_model.list <- function(x) {
  t <- paste0("pm_", x$general$type)
  class(x) <- c("parsed_model", t, class(x))
  x
}

Try the tidypredict package in your browser

Any scripts or data that you put into this service are public.

tidypredict documentation built on Jan. 22, 2023, 1:41 a.m.