Description Usage Arguments Details Value Note Author(s) References See Also Examples
Weighted Runs Created is a statistic which attempts to credit a hitter for the value of each outcome.
1 | wrc(wOBA, PA, year)
|
wOBA |
Weighted On Base Average |
PA |
Plate Appearances |
year |
Season |
wRC is reported with runs as the units
Returns a value equal to (((wOBA-linearWeights$wOBA[which(linearWeights$Season == year)])/linearWeights$wOBAScale[which(linearWeights$Season == year)])+weights$RPerPA[which(linearWeights$Season == year)])*PA
wRC is considered a better representation of offensive value than something like ops
Peter Xenopoulos
http://www.fangraphs.com/library/offense/wrc/
woba,wraa,wrcplus
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Let's calculate Mike Trout's 2014 wRC
## He had a wOBA of .402 and 705 PA's
## We should return 125.879
wrc(.402,705,2014)
## The function is currently defined as
function (wOBA, PA, year)
{
wrc <- (((wOBA - linearWeights$wOBA[which(linearWeights$Season ==
year)])/linearWeights$wOBAScale[which(linearWeights$Season ==
year)]) + weights$RPerPA[which(linearWeights$Season ==
year)]) * PA
return(wrc)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.