Learn R Programming

mlbstats (version 0.1.0)

xbh: Calculates extra base hits

Description

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

Usage

xbh(b2, b3, hr)

Arguments

b2

Number of doubles

b3

Number of triples

hr

Number of home runs

Value

xbh

Examples

Run this code
# NOT RUN {
xbh(20, 18, 4)
# }

Run the code above in your browser using DataLab