lgwSB: League wSB

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)
  }

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.