how can i write this python line of code in r code?
yes_oversampled = resample(yes, replace=True, n_samples=len(no), random_state=123)
Thanks