add_modeltime_model: Add a Model into a Modeltime Table

View source: R/helpers-modeltime_table.R

add_modeltime_modelR Documentation

Add a Model into a Modeltime Table

Description

Add a Model into a Modeltime Table

Usage

add_modeltime_model(object, model, location = "bottom")

Arguments

object

Multiple Modeltime Tables (class mdl_time_tbl)

model

A model of class model_fit or a fitted workflow object

location

Where to add the model. Either "top" or "bottom". Default: "bottom".

See Also

  • combine_modeltime_tables(): Combine 2 or more Modeltime Tables together

  • add_modeltime_model(): Adds a new row with a new model to a Modeltime Table

  • drop_modeltime_model(): Drop one or more models from a Modeltime Table

  • update_modeltime_description(): Updates a description for a model inside a Modeltime Table

  • update_modeltime_model(): Updates a model inside a Modeltime Table

  • pull_modeltime_model(): Extracts a model from a Modeltime Table

Examples


library(tidymodels)

model_fit_ets <- exp_smoothing() %>%
    set_engine("ets") %>%
    fit(value ~ date, training(m750_splits))

m750_models %>%
    add_modeltime_model(model_fit_ets)



modeltime documentation built on Oct. 23, 2024, 1:07 a.m.