update_synth_spec: Tidy API calls ————–

View source: R/synth_spec.R

update_synth_specR Documentation

Tidy API calls ———————————————————-

Description

Update non-custom synth_spec arguments

Usage

update_synth_spec(synth_spec, ...)

Arguments

synth_spec

A synth_spec object

...

Optional named keywords in synth_spec, with the exception of any ⁠custom_*⁠arguments

Value

A synth_spec

Examples


synth_spec <- synth_spec()

lm_mod <- parsnip::linear_reg() |> 
  parsnip::set_engine("lm") |>
  parsnip::set_mode(mode = "regression")

update_synth_spec(
  synth_spec, 
  default_regression_model = lm_mod
)


tidysynthesis documentation built on March 17, 2026, 1:06 a.m.