Skip to contents

Extracts the preprocessor from a model and applies it to the provided data.

Usage

extrac_prep(model, x)

Arguments

model

A model object, typically a workflow or recipe.

x

A dataset to be preprocessed.

Value

A preprocessed dataset, where the preprocessing steps defined in the model are applied to x.

Examples

if (FALSE) {
  # Assuming 'model' is a predefined model object and 'data' is available
  preprocessed_data <- extrac_prep(model, data)
}