Imputation function for a boolean column
bol_imputer.Rd
Imputation function for a boolean column
Arguments
- x
input data tibble
- c
name of the logical class or boolean column to modify
- method
name of the imputing strategy.
Examples
input_df <- data.frame(a = c(TRUE,FALSE, TRUE), b = c(TRUE,FALSE, NA))
bol_imputer(input_df, "b", "mode")
#> a b
#> 1 TRUE TRUE
#> 2 FALSE FALSE
#> 3 TRUE TRUE