team.batting.00to08 {nutshell} | R Documentation |
This data set contains statistics on team batting between 2000 and 2008.
data(team.batting.00to08)
A data frame with 270 observations on the following 13 variables.
teamID
yearID
runs
singles
doubles
triples
homeruns
walks
stolenbases
caughtstealing
hitbypitch
sacrificeflies
atbats
This data contains aggregate offensive statistics for each team in Major League Baseball between 2000 and 2008. It is used as an example in the book "R in a Nutshell" from O'Reilly Media.
The data was derived from the Baseball Databank database, downloadable from http://www.baseball-databank.org.
data(team.batting.00to08) attach(team.batting.00to08) runs.mdl <- lm( formula=runs~singles+doubles+triples+homeruns+ walks+hitbypitch+sacrificeflies+ stolenbases+caughtstealing, data=team.batting.00to08) summary(runs.mdl)