Learn R Programming

mlbstats (version 0.1.0)

ba: Calculates batting average

Description

Takes number of hits and divides by at bats. 1.000 (read ``one-thousand" is perfect)

Usage

ba(h, ab)

Arguments

h

Number of hits

ab

Number of at bats

Value

ba

Examples

Run this code
# NOT RUN {
ba(200, 525)
# }

Run the code above in your browser using DataLab