R script to generate the data set, with helper sh script