Learn R Programming

BaylorEdPsych (version 0.5)

MLBOffense2011: 2011 Major League Baseball offensive data

Description

Offensive data from Major League Baseball players in 2011 who were not traded during the season

Usage

data(MLBOffense2011)

Arguments

Format

A data frame with 814 observations (only 688 had at least 1 At Bat [AB]) on the following 30 variables:
FName
Player's first name
LName
Player's last name
HR
Home runs
Year
Year of season
Age
Player's age during year
Tm
Player's team
Lg
League in which player plays (NL = National League; AL = American League)
G
Games (Regulation length games in which a player plays)
PA
Plate appearances (PA = AB+BB+IBB+HBP+SH+SF)
AB
Number of official at bats (AB = PA-BB-IBB-HBP-SH-SF)
R
Runs scored
H
Hits (H = B1+B2+B3+HR)
B1
Singles
B2
Doubles
B3
Triples
RBI
Runs batted in
BB
Walks
IBB
Intentional walks
SO
Strike outs
HBP
Hit by pitch
SH
Sacrifice bunts
SF
Sacrifice flys
GDP
Number of times player grounded into a double play
SB
Stolen bases
CS
Number of times player was caught stealing a base
BA
Batting average (BA = H/AB)
OBP
On-base percentage (OBP = (H+BB+HBP)/(AB+BB+HBP+SF))
SLG
Slugging percentage (SLG = (B1)+(2*B2)+3*B3)+(4*HR)/AB)
OPS
On-base percentage plus slugging percentage (OPS = OBP+SLG)
TB
Total bases (TB = (B1)+(2*B2)+(3*B3)+(4*HR))

Source

The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at www.retrosheet.org.

Details

Data from Retrosheet

Examples

Run this code
data(MLBOffense2011)

Run the code above in your browser using DataLab