Removed observations that are part of tomek links.
Arguments
- df
data.frame or tibble. Must have 1 factor variable and remaining numeric variables.
- var
Character, name of variable containing factor variable.
Examples
circle_numeric <- circle_example[, c("x", "y", "class")]
res <- tomek(circle_numeric, var = "class")