batting.2008 {nutshell} | R Documentation |
This data frame contains information on all 1384 players who had at least one plate appearance in MLB in 2008.
This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.
data(batting.2008)
A data frame with 1384 observations on the following 31 variables.
nameLast
nameFirst
weight
height
bats
throws
debut
birthYear
playerID
yearID
stint
teamID
lgID
G
G_batting
AB
R
H
2B
3B
HR
RBI
SB
CS
BB
SO
IBB
HBP
SH
SF
GIDP
G_old
This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.
This data is taken from the Baseball Databank database, available from http://www.baseball-databank.org/
data(batting.2008) tapply(X=batting.2008$HR,INDEX=list(batting.2008$teamID),FUN=sum)