secavg: Secondary Average

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Secondary average measure the sum of extra bases gained on hits, walks and stolen bases.

Usage

1
secavg(ab, bb, tb, h, sb, cs)

Arguments

ab

At Bats

bb

Walks

tb

Total Bases

h

Hits

sb

Stolen Bases

cs

Caught Stealing

Details

SecAvg shares no correlation with batting average although overall league averages are inclined to correspond with league batting averages.

Value

Returns a numerical value equal to (bb+tb-h+sb-cs)/ab

Author(s)

Peter Xenopoulos

References

https://en.wikipedia.org/wiki/Secondary_average

See Also

ops,slg,iso

Examples

1
2
3
4
5
6
## The function is currently defined as
function (ab, bb, tb, h, sb, cs) 
{
    SecA <- (bb + tb - h + sb - cs)/ab
    return(SecA)
  }

peterxeno/sabermetrics-package documentation built on May 25, 2019, 2:10 a.m.