batting.2008: MLB Batting Data, 2008 Season

Description Usage Format Details Source Examples

Description

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.

Usage

1

Format

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

Details

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Source

This data is taken from the Baseball Databank database, available from http://www.baseball-databank.org/

Examples

1
2

Example output

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 

nutshell documentation built on May 1, 2019, 10:08 p.m.