Learn R Programming

mlr (version 2.3)

reimpute: Re-impute a data set

Description

This function accepts a data frame and a imputation description as returned by impute to perform the following actions:
  1. Restore dropped columns, setting them toNA
  2. Add dummy variables for columns as specified inimpute
  3. Optionally check factors for new levels to treat them asNAs
  4. Reorder factor levels to ensure identical integer representation as before
  5. Impute missing values using previously collected data

Usage

reimpute(x, desc)

Arguments

Value

Imputated x.

See Also

Other impute: imputations, imputeConstant, imputeHist, imputeLearner, imputeMax, imputeMean, imputeMedian, imputeMin, imputeMode, imputeNormal, imputeUniform; impute; makeImputeMethod; makeImputeWrapper