resample a dataframe to counteract variable imbalance

balancedDataframe(x, variable, method)

Arguments

x

data frame to extend

variable

column name

method

one of permissible methods listed in function (will print if wrong method passed)

Value

new data frame

Author

Avants BB