Learn R Programming

mlbstats (version 0.1.0)

rc: Calculates runs created

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

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

Run this code
# NOT RUN {
rc(150, 35, 165, 400)
# }

Run the code above in your browser using DataLab