batting | R Documentation |
The batting dataset contains MLB player, salary, and hitting statistics from Sean Lahman's Baseball Database.
batting
A data frame with 9395 observations on 36 variables. The variables are as follows:
Unique identifier for each player
Year data was observed
Team; a factor
Player's stint (order of appearances within season)
League; a factor with levels AA AL FL NL PL UA
Games: number of games in which a player played
At Bats
Runs
Hits: times reached base because of a batted, fair ball wihtout error by the defense
Doubles: hits on which the batter reached second base safely
Triples: hits on which the batter reached third base safely
Homeruns
Runs Batted In
Stolen Bases
Caught Stealing
Base on Balls
Strikeouts
Intentional Walks
Hit by Pitch
Sacrifice Hits
Sacrifice Flies
Grounded into Double Plays
Batting Average
Plate Appearances
Total Bases
Slugging Percentage
On-Base Percentage
On-Base Percentage + Slugging
Batting Average on Balls in Play
Annual Salary
Year a player was born
Month a player was born
Player's last name
Player's first name
Player's batting hand
Player's age
This dataset combines Lahman's Master, Batting, and Salaries datasets to provide comprehensive batting statistics for each Major League Baseball player. The dataset was reduced to a 15 year time frame (2001-2016) and simplified by removing all incomplete cases.
Shane Ross <saross@wesleyan.edu>
Lahman, S. (2010) Lahman's Baseball Database, 1871-2012, 2012 version, http://www.seanlahman.com/baseball-archive/statistics/.
summary(batting)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.