resample a dataframe to counteract variable imbalance
balanceDataMultiClass(x, variable, method, minimum_ratio = 0.99)
Arguments
- x
data frame to extend
- variable
column name
- method
one of permissible methods listed in function (will print if wrong method passed)
- minimum_ratio
minimum acceptable ratio of smallest to largest group n