R/deprec-impute_bag.R

Defines functions step_bagimpute

Documented in step_bagimpute

#' Impute via bagged trees
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' Please use [step_impute_bag()] instead.
#'
#' @keywords internal
#' @export
step_bagimpute <- function(
  recipe,
  ...,
  role = NA,
  trained = FALSE,
  impute_with = imp_vars(all_predictors()),
  trees = 25,
  models = NULL,
  options = list(keepX = FALSE),
  seed_val = sample.int(10^4, 1),
  skip = FALSE,
  id = rand_id("impute_bag")
) {
  lifecycle::deprecate_stop(
    when = "0.1.16",
    what = "recipes::step_bagimpute()",
    with = "recipes::step_impute_bag()"
  )
}

Try the recipes package in your browser

Any scripts or data that you put into this service are public.

recipes documentation built on June 8, 2025, 10:21 a.m.