Description Usage Format Details Source Examples
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.
1 |
A data frame with 1384 observations on the following 31 variables.
nameLasta character vector
nameFirsta character vector
weighta numeric vector
heighta numeric vector
batsa character vector
throwsa character vector
debuta character vector
birthYeara numeric vector
playerIDa character vector
yearIDa numeric vector
stinta numeric vector
teamIDa character vector
lgIDa character vector
Ga numeric vector
G_battinga numeric vector
ABa numeric vector
Ra numeric vector
Ha numeric vector
2Ba numeric vector
3Ba numeric vector
HRa numeric vector
RBIa numeric vector
SBa numeric vector
CSa numeric vector
BBa numeric vector
SOa numeric vector
IBBa numeric vector
HBPa numeric vector
SHa numeric vector
SFa numeric vector
GIDPa numeric vector
G_olda numeric vector
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/
1 2 | data(batting.2008)
tapply(X=batting.2008$HR,INDEX=list(batting.2008$teamID),FUN=sum)
|
Loading required package: nutshell.bbdb
Loading required package: nutshell.audioscrobbler
ARI ATL BAL BOS CHA CHN CIN CLE COL DET FLO HOU KCA LAA LAN MIL MIN NYA NYN OAK
159 130 172 173 235 184 187 171 160 200 208 167 120 159 137 198 111 180 172 125
PHI PIT SDN SEA SFN SLN TBA TEX TOR WAS
214 153 154 124 94 174 180 194 126 117
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.