imputes only one variable with knn
1 | impute_variable(var, my_data, my_data_impute, k)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.