impute_variable: imputes only one variable with knn

Description Usage Arguments

View source: R/knn_impute.R

Description

imputes only one variable with knn

Usage

1
impute_variable(var, my_data, my_data_impute, k)

Arguments

var

a string indicating the variable to be imputed

my_data

a tibble / data.frame containing the dataset with missing values

my_data_impute

a tibble / data.frame containing the dataset with filled missing values

k

the number of neighbors


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