Learn R Programming

Sabermetrics (version 2.0)

Sabermetrics Functions for Baseball Analytics

Description

A collection of baseball analytics functions for sabermetrics purposes. Among these functions include popular metrics such as FIP, wOBA, and runs created and other advanced metrics.

Copy Link

Version

Install

install.packages('Sabermetrics')

Monthly Downloads

34

Version

2.0

License

GPL-3

Last Published

January 26th, 2016

Functions in Sabermetrics (2.0)

parkfactors

Park Factors
fipminus

FIP-
iso

Isolated Power
linearWeights

Linear Weights Dataset
babip

Batting Average on Balls in Play (BABIP)
eraminus

ERA-
sabermetrics-package

Sabermetrics Functions For Baseball Analytics
obp

On-Base Percentage
fip

Field Independent Pitching (FIP)
dice

Defense-Independent Component ERA
log5

Log5
pyth

Pythagorean Expectation
lgwSB

League wSB
ops

On-Base Plus Slugging
whip

WHIP
slg

Slugging Percentage
xfipminus

xFIP-
woba

Weighted On-Base Average (wOBA)
wraa

Weighted Runs Above Average
xfip

xFIP
wrcplus

wRC+
raweqa

Raw Equivalent Average
opsplus

OPS+
fp

Fielding Percentage
wsb

wSB
wrc

Weighted Runs Created
handedparkfactors

Park Factors with Handedness
era

Earned-Run Average (ERA)
secavg

Secondary Average