RCbasic {baseballDBR}R Documentation

Batting: Calculate Runs Created using the basic formula.

Description

Find the runs created using the basic formula presented by Bill James in the late 1970s. Required fields from the batting table are "AB", "H", "BB", "X2B", "X3B", and "HR."

Usage

RCbasic(dat = NULL)

Arguments

dat

A data frame you would wish to calculate. The data frame must have the same column names found in The Lahman package or the Chadwick Bureau GitHub repository.

See Also

Other Batting functions: BABIP, BA, BBpct, CTpct, HRpct, ISO, Kpct, OBP, OPS, PA, RC2002, RCtech, SLG, TBs, XBHpct, XBperH, wOBA, wRAA, wRC

Examples


data("Batting2016")
head(Batting2016)

Batting2016$RCbasic <- RCbasic(Batting2016)


[Package baseballDBR version 0.1.2 Index]