Author: Chris Dolan
Date: 12/21/2015
-One of the Most important statistics in baseball
-Calculated by dividing the number of hits by the number of at bats
-Helps to show how well a team is doing offensively
Data was imported from retrosheet.com to help you explore the St. Louis Cardinals 2015 season
homeavg <- round(mean(cardshome$BatAvgHome), digits = 3)
awayavg <- round(mean(cardsaway$BatAvgAway), digits = 3)
[1] "The team batting average for the Cardinals during Home Games was: 0.259"
[1] "The team batting average for the Cardinals during Away Games was: 0.238"
-This Invaluable app can help you win your fantasy baseball league -Updates coming include:
*More teams
*Individual Players
*Yearly Trends
Disclaimer: The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at www.retrosheet.org.