lgwSB: League wSB

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

Description

This function helps find the League wSB

Usage

1
lgwSB(year, SB, CS, single, bb, hbp, ibb)

Arguments

year

Season

SB

League Stolen Bases

CS

League Caught Stealing

single

Singles

bb

Walks

hbp

Hit By Pitches

ibb

Intentional Walks

Value

Returns a value equal to (SB * runSB + CS * runCS) / (single + bb + hbp - ibb)

Author(s)

Peter Xenopoulos

References

http://www.fangraphs.com/library/offense/wsb/

See Also

wsb

Examples

1
2
3
4
5
6
7
8
9
## The function is currently defined as
function (year, SB, CS, single, bb, hbp, ibb) 
{
    runSB <- linearWeights$runSB[which(linearWeights$Season == 
        year)]
    runCS <- linearWeights$runCS[which(linearWeights$Season == 
        year)]
    lgwSB <- (SB * runSB + CS * runCS)/(single + bb + hbp - ibb)
  }

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