powered by
Major League batting data for the seasons from 2000-2005.
A data frame with 8062 observations on the following 22 variables.
player unique identifier for each player
year year
stint for players who were traded mid-season, indicates which portion of the season the data cover
team three-letter code for team
league a factor with levels AA AL NL
AA
AL
NL
G games
AB at bats
R runs
H hits
H2B doubles
H3B triples
HR home runs
RBI runs batted in
SB stolen bases
CS caught stealing
BB bases on balls (walks)
SO strike outs
IBB intentional base on balls
HBP hit by pitch
SH a numeric vector
SF sacrifice fly
GIDP grounded into double play
# NOT RUN { data(batting) histogram(~HR,batting) # }
Run the code above in your browser using DataLab