balanceClasses: Simple balancing of classes for multinomial. If up-sample, do...

Description

Simple balancing of classes for multinomial. If up-sample, do with
replacement, if down sample no replacement. For the final class
sizes, pass a vector of the desired class sizes that is in the same
order as the original data (e.g., if run table(df[,target])