knn_impute_init: init of knn impute, if the variable is numeric then imputes...

Description Usage Arguments Value

View source: R/knn_impute.R

Description

init of knn impute, if the variable is numeric then imputes with mean of all values otherwise takes the most repeated levels.

Usage

1

Arguments

var

a variable with missing values as NA

Value

the var vector with imputed values


welch16/rwlib documentation built on Jan. 13, 2020, 1:27 p.m.