Demo for pulling baseball stats using MongoDB and MapReduce
This is used for a tutorial at: http://adamnengland.wordpress.com/2012/07/16/map-reducing-t…als-with-mongo/
To populate your db with the sample data, run the contents of sampleStatsData.js
Run countHR.js to find the team homeruns for your roster
Run battingAverage.js to calculate and group the batting average for your roster