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

Sabermetrics documentation built on Jan. 15, 2017, 7:34 p.m.

Search within the Sabermetrics package
Search all R packages, documentation and source code