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.
nameLast
a character vector
nameFirst
a character vector
weight
a numeric vector
height
a numeric vector
bats
a character vector
throws
a character vector
debut
a character vector
birthYear
a numeric vector
playerID
a character vector
yearID
a numeric vector
stint
a numeric vector
teamID
a character vector
lgID
a character vector
G
a numeric vector
G_batting
a numeric vector
AB
a numeric vector
R
a numeric vector
H
a numeric vector
2B
a numeric vector
3B
a numeric vector
HR
a numeric vector
RBI
a numeric vector
SB
a numeric vector
CS
a numeric vector
BB
a numeric vector
SO
a numeric vector
IBB
a numeric vector
HBP
a numeric vector
SH
a numeric vector
SF
a numeric vector
GIDP
a numeric vector
G_old
a 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.