Return the imputed version of data based on the methods selected

missing_imputer(data, method = "mean")

Arguments

data

The raw data with missing values

method

The method used to impute the missing values

Value

An imputed dataframe with the method specified

Examples

data <- data.frame('col1'=c(1,NA,3), 'col2'=c(1,2,3))
missing_imputer(data , method = "median")
#>   col1 col2
#> 1    1    1
#> 2    2    2
#> 3    3    3