R/deprec-impute_mena.R

Defines functions step_meanimpute

Documented in step_meanimpute

#' Impute numeric data using the mean
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' Please use [step_impute_mean()] instead.
#'
#' @keywords internal
#' @export
step_meanimpute <- function(
  recipe,
  ...,
  role = NA,
  trained = FALSE,
  means = NULL,
  trim = 0,
  skip = FALSE,
  id = rand_id("impute_mean")
) {
  lifecycle::deprecate_stop(
    when = "0.1.16",
    what = "recipes::step_meanimpute()",
    with = "recipes::step_impute_mean()"
  )
}

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.