step_knnimpute: Impute via k-nearest neighbors

View source: R/deprec-impute_knn.R

step_knnimputeR Documentation

Impute via k-nearest neighbors

Description

[Deprecated]

Please use step_impute_knn() instead.

Usage

step_knnimpute(
  recipe,
  ...,
  role = NA,
  trained = FALSE,
  neighbors = 5,
  impute_with = imp_vars(all_predictors()),
  options = list(nthread = 1, eps = 1e-08),
  ref_data = NULL,
  columns = NULL,
  skip = FALSE,
  id = rand_id("impute_knn")
)

tidymodels/recipes documentation built on Jan. 25, 2025, 7:30 a.m.