Learn R Programming

tidysynthesis (version 0.1.2)

update_synth_spec: Tidy API calls ----------------------------------------------------------

Description

Update non-custom synth_spec arguments

Usage

update_synth_spec(synth_spec, ...)

Value

A synth_spec

Arguments

synth_spec

A synth_spec object

...

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

Examples

Run this code

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
)

Run the code above in your browser using DataLab