Skip to content

Instantly share code, notes, and snippets.

@mattdennewitz
Created September 18, 2011 23:10
Show Gist options
  • Select an option

  • Save mattdennewitz/1225697 to your computer and use it in GitHub Desktop.

Select an option

Save mattdennewitz/1225697 to your computer and use it in GitHub Desktop.
Retrosheet/wOBA calculation
function(key, result) {
return ((0.72 * result.nibb) + (0.75 * result.hbp) + (0.9 * result._1b) + (0.92 * result.rboe) +
(1.24 * result._2b) + (1.56 * result._3b) + (1.95 * result.hr)) / result.pa;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment