imputation.Rd
This function will impute missing data in a tibble/dataframe given the chosen method(mean, median)
imputation(fit_data, fill_data, method, constant = NULL)
fit_data | list |
---|---|
fill_data | list |
method | character |
constant | character, default NULL |
list
test_df <- data.frame('a' = c(1,NA,3), 'b' = c(5,6,NA), 'c' = c(NA,1,10)) test_df_imputed <- imputation(test_df, test_df, 'mean')