Learn R Programming

recipes (version 1.1.0)

step_knnimpute: 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")
)

Arguments