EqA {mlbstats}R Documentation

Calculates equivalent average

Description

Takes the number of hits, total bases, bases on balls, hits by pitch, stolen bases, sacrifice hits, sacrifice flies, at bats, and caught stealing to compute the base runs, which is a player's batting average absent park and league effects

Usage

EqA(h, tb, bb, hbp, sb, sh, sf, ab, cs)

Arguments

h

Number of hits

tb

Number of total bases (one for 1B, two for 2B, three for 3B, and four for HR)

bb

Number of bases on balls

hbp

Number of hits by pitch

sb

Number of stolen bases

sh

Number of sacrifice hits (typically bunts)

sf

Number of sacrifice flies

ab

Number of at bats

cs

Number of caught stealing

Value

EqA

Examples

EqA(135, 155, 22, 3, 15, 4, 2, 365, 1)

[Package mlbstats version 0.1.0 Index]