R/deprec-impute_roll.R

Defines functions step_rollimpute

Documented in step_rollimpute

#' Impute numeric data using a rolling window statistic
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#' 
#' Please use [step_impute_roll()] instead.
#'
#' @keywords internal
#' @export
step_rollimpute <- function(recipe,
                            ...,
                            role = NA,
                            trained = FALSE,
                            columns = NULL,
                            statistic = median,
                            window = 5,
                            skip = FALSE,
                            id = rand_id("impute_roll")) {
  lifecycle::deprecate_stop(
    when = "0.1.16",
    what = "recipes::step_rollimpute()",
    with = "recipes::step_impute_roll()"
  )
}

Try the recipes package in your browser

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

recipes documentation built on July 4, 2024, 9:06 a.m.