xbh: Calculates extra base hits

Description Usage Arguments Value Examples

View source: R/batting.R

Description

Computes total hits by a player greater than singles (1B) by adding 2B, 3B, and hr

Usage

1
xbh(b2, b3, hr)

Arguments

b2

Number of doubles

b3

Number of triples

hr

Number of home runs

Value

xbh

Examples

1
xbh(20, 18, 4)

Example output

[1] 42

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

Related to xbh in mlbstats...