impute_dat: Impute missing values

Description Usage Arguments Author(s) Examples

Description

Impute missing values

Usage

1
impute_dat(dat, method)

Arguments

dat

a data frame.

method

imputation method. Need to be one of these: zero, mean, Inf0, code99

Author(s)

Hui Lin, longqiman@gmail.com

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(DataScienceR)
data("SegData")
impdat <- SegData[, c("income", "house")]
# summary(SegData)
impdat = impute_dat(impdat, method = "mean")
summary(impdat)

## End(Not run)

happyrabbit/DataScienceR documentation built on May 17, 2019, 2:41 p.m.