imputation.prepare: imputation.prepare - compute mean, median or mode for...

Description Usage Arguments Examples

View source: R/imputation.R

Description

imputation.prepare - compute mean, median or mode for selected columns, this values can be used to fill missing values

Usage

1
imputation.prepare(data, columnIndices, columnOptions)

Arguments

columnIndices

- select columns you want to process

columnOptions

- select type of data inputation schema per column. One of: - 'average' - 'median' - 'mode'

Examples

1
2
3
4
5
iris_c = iris
fil = seq(from=1, to=150, by=2)
iris_c[fil, 1:2] = NA
iris_c[fil, 5] = NA
p = inputation.prepare(iris_c, c(1, 2, 5),  c("average", "median", "mode"))

rzaluska/mow documentation built on May 4, 2019, 1:22 p.m.