Example using vtreat to automate most of the steps working with KDD2009 example in chapter 6 of Practical Data Science with R