For a Recipe with at least one preprocessing or DA operation run the steps in a convenient order.
Usage
prep(
rec,
parallel = TRUE,
workers = future::availableCores(constraints = "connections-16"),
force = FALSE
)Details
Recipes containing differential-abundance steps require an
explicit add_model() before execution. Preprocessing-only recipes
remain supported without a model. A missing model is reported before
preprocessing or dependency checks, so the input data are not modified.
Examples
data(metaHIV_phy)
rec <- recipe(metaHIV_phy) |>
add_model(~ RiskGroup2, targets = "RiskGroup2", tax_level = "Class") |>
step_filter_by_prevalence(threshold = 0.03) |>
step_wilcox()
da_results <- prep(rec, parallel = FALSE)
