R: Yearly batting records for all major league baseball players
baseball
R Documentation
Yearly batting records for all major league baseball players
Description
This data frame contains batting statistics for a subset of players
collected from http://www.baseball-databank.org/. There are a total
of 21,699 records, covering 1,228 players from 1871 to 2007. Only players
with more 15 seasons of play are included.
Usage
baseball
Format
A 21699 x 22 data frame
Variables
Variables:
id, unique player id
year, year of data
stint
team, team played for
lg, league
g, number of games
ab, number of times at bat
r, number of runs
h, hits, times reached base because of a batted, fair ball without
error by the defense
X2b, hits on which the batter reached second base safely
X3b, hits on which the batter reached third base safely