rc: Calculates runs created

Description Usage Arguments Value Examples

View source: R/batting.R

Description

Computes the basic version of the estimated runs a hitter creates or contributes (see also "rc2" for the 'stolen base' iteration and "rc3" for the technical iteration of the rc statistic)

Usage

1
rc(h, bb, tb, ab)

Arguments

h

Number of hits

bb

Number of bases on balls

tb

Number of total bases (one for 1B, two for 2B, three for 3B, and four for HR)

ab

Number of at bats

Value

rc

Examples

1
rc(150, 35, 165, 400)

mlbstats documentation built on May 2, 2019, 1:04 p.m.

Related to rc in mlbstats...