reimpute: Re-impute a data set

Description Usage Arguments Value See Also

View source: R/Impute.R

Description

This function accepts a data frame or a task and an imputation description as returned by impute to perform the following actions:

  1. Restore dropped columns, setting them to NA

  2. Add dummy variables for columns as specified in impute

  3. Optionally check factors for new levels to treat them as NAs

  4. Reorder factor levels to ensure identical integer representation as before

  5. Impute missing values using previously collected data

Usage

1
reimpute(obj, desc)

Arguments

obj

[data.frame | Task]
Input data.

desc

[ImputationDesc]
Imputation description as returned by impute.

Value

Imputated data.frame or task with imputed data.

See Also

Other impute: imputations, impute, makeImputeMethod, makeImputeWrapper


riebetob/mlr documentation built on May 20, 2019, 5:58 p.m.