
Last chance! 50% off unlimited learning
Sale ends in
# NOT RUN {
data(dft) # Titanic dataset
df <- balance_data(dft, Survived, rate = 0.5)
df <- balance_data(dft, Survived, rate = 0.5, target = "TRUE")
# }
Run the code above in your browser using DataLab