extract_argument: Extract an argument made to a frosting layer or recipe step

View source: R/extract.R

extract_argumentR Documentation

Extract an argument made to a frosting layer or recipe step

Description

Extract an argument made to a frosting layer or recipe step

Usage

extract_argument(x, name, arg, ...)

Arguments

x

an epi_workflow, epi_recipe, frosting, step, or layer object

name

the name of the layer

arg

the name of the argument

...

not used

Value

An object originally passed as an argument to a layer or step

Examples

f <- frosting() %>%
  layer_predict() %>%
  layer_residual_quantiles(symmetrize = FALSE) %>%
  layer_naomit(.pred)

extract_argument(f, "layer_residual_quantiles", "symmetrize")

cmu-delphi/epipredict documentation built on March 5, 2025, 12:17 p.m.