Learn R Programming

mlbstats (version 0.1.0)

rc3: Calculates runs created accounting for all offensive indicators

Description

Computes the technical iteration of estimated runs a hitter creates or contributes accounting for virtually all offensive indicators (see also "rc" for the basic iteration and "rc2" for the 'stolen base' iteration of the rc statistic)

Usage

rc3(h, bb, ibb, tb, ab, cs, sb, hbp, gidp, sh, sf)

Arguments

h

Number of hits

bb

Number of bases on balls

ibb

Number of intentional 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

cs

Number of stolen bases caught

sb

Number of stolen bases

hbp

Number of hits by pitch

gidp

Number of grounded into double play

sh

Number of sacrifice hits

sf

Number of sacrifice flies

Value

rc3

Examples

Run this code
# NOT RUN {
rc3(150, 35, 3, 165, 400, 7, 9, 5, 1, 6, 2)
# }

Run the code above in your browser using DataLab