Learn R Programming

mlbstats (version 0.1.0)

ab_hr: Calculates at bats per home run

Description

Takes number of at bats and divides by number of home runs

Usage

ab_hr(ab, hr)

Arguments

ab

Number of at bats

hr

Number of home runs

Value

ab_hr

Examples

Run this code
# NOT RUN {
ab_hr(400, 25)
# }

Run the code above in your browser using DataLab