Learn R Programming

mlbstats (version 0.1.0)

BsR: Calculates the base runs estimator

Description

Takes the number of hits, bases on balls, home runs, total bases, and at bats to compute the base runs estimator, which is similar to runs created

Usage

BsR(h, bb, hr, tb, ab)

Arguments

h

Number of hits

bb

Number of bases on balls

hr

Number of home runs

tb

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

ab

Number of at bats

Value

BsR

Examples

Run this code
# NOT RUN {
BsR(135, 22, 12, 155, 330)
# }

Run the code above in your browser using DataLab