ta: Calculates total average

Description Usage Arguments Value Examples

View source: R/batting.R

Description

Computes overall offensive contribution of a single player

Usage

1
ta(tb, hbp, bb, sb, ab, h, cs, gidp)

Arguments

tb

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

hbp

Number of hits by pitch

bb

Number of bases on balls

sb

Number of stolen bases

ab

Number of at bats

h

Number of hits

cs

Number of caught stealing

gidp

Number of grounded into double play

Value

ta

Examples

1
ta(125, 11, 40, 10, 400, 105, 2, 6)

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

Related to ta in mlbstats...