Baobao finalized R code for big data generation