battinghistory {RbyExample}R Documentation

Baseball Batting History Data

Description

Major League Baseball data on batting; number of hits, doubles, home runs by season. The data was extracted from baseball-reference.com website.

Usage

battinghistory

Format

140 obs. of 27 variables:

Year

season

Tms

number of teams

N.Bat

number of players

BatAge

batter's average age

R

runs scored

G

games played

PA

plate appearances

AB

at-bats

H

hits

X2B

doubles

X3B

triples

HR

home runs

RBI

runs batted in

SB

stolen bases

CS

number caught stealing

BB

walks

SO

strikeouts

BA

batting average

OBP

on-base percentage

SLG

slugging percentage

OPS

OBP plus SLG

TB

total bases

GDP

ground into double plays

HBP

hit by pitches

SH

sacrifice hits

SF

sacrifice flies

IBB

intentional walks

Note

This version of the data is sorted in ascending order of Year. There are missing values, especially in early years.

Source

baseball-reference.com.


[Package RbyExample version 0.0.100 Index]