St. Louis Cardinals Batting Average

Author: Chris Dolan

Date: 12/21/2015

The Statistic: Batting Average

-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

Home vs Away Batting Average

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"

You can also explore the Cardinal's batting average vs every team they played, home and away

plot of chunk myplot

Gives You the Winning Edge

-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.