Learn R Programming

RbyExample (version 0.0.100)

battinghistory: 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

Arguments

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