makeImputeMethod: Create a custom imputation method.

Description Usage Arguments See Also

View source: R/ImputeMethods.R

Description

This is a constructor to create your own imputation methods.

Usage

1

Arguments

learn

[function(data, target, col, ...)]
Function to learn and extract information on column col out of data frame data. Argument target specifies the target column of the learning task. The function has to return a named list of values.

impute

[function(data, target, col, ...)]
Function to impute missing values in col using information returned by learn on the same column. All list elements of the return values o learn are passed to this function into ....

args

[list]
Named list of arguments to pass to learn via ....

See Also

Other impute: imputations, impute, makeImputeWrapper, reimpute


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