A sample solution using R for http://www.utahdatacompetition.com/challenge/