# Generate 150 (size of original iris dataset) synthetic samples from the iris dataset
x_synth <- rarf(iris)
# Generate 100 synthetic samples from the iris dataset
x_synth <- rarf(iris, n_synth = 100)
# Condition on Species = "setosa"
x_synth <- rarf(iris, evidence = data.frame(Species = "setosa"))
Run the code above in your browser using DataLab