File: reimpute.Rd

package info (click to toggle)
r-cran-mlr 2.19.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,264 kB
  • sloc: ansic: 65; sh: 13; makefile: 5
file content (38 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Impute.R
\name{reimpute}
\alias{reimpute}
\title{Re-impute a data set}
\usage{
reimpute(obj, desc)
}
\arguments{
\item{obj}{(\link{data.frame} | \link{Task})\cr
Input data.}

\item{desc}{(\code{ImputationDesc})\cr
Imputation description as returned by \link{impute}.}
}
\value{
Imputated \code{data.frame} or task with imputed data.
}
\description{
This function accepts a data frame or a task and an imputation description
as returned by \link{impute} to perform the following actions:
\enumerate{
\item Restore dropped columns, setting them to \code{NA}
\item Add dummy variables for columns as specified in \code{impute}
\item Optionally check factors for new levels to treat them as \code{NA}s
\item Reorder factor levels to ensure identical integer representation as
before
\item Impute missing values using previously collected data
}
}
\seealso{
Other impute: 
\code{\link{imputations}},
\code{\link{impute}()},
\code{\link{makeImputeMethod}()},
\code{\link{makeImputeWrapper}()}
}
\concept{impute}