Preprocesses a dataset using a specified recipe.
Arguments
- x
A dataset to be preprocessed.
- rec
A recipe
object specifying the preprocessing steps.
Value
A preprocessed dataset based on the provided recipe.
Examples
if (FALSE) { # \dontrun{
# Assuming 'rec' is a predefined recipe object and 'data' is available
preprocessed_data <- apply_rec(data, rec)
} # }