Skip to contents

Compute home run rates

Usage

hr_rates(age, hr, ab)

Arguments

age

Age of the player

hr

Number of home runs

ab

Number of at-bats

Value

a list with two elements:

  • x: the age of the player

  • y: the number of home runs per 100 at-bats

Examples

hr_rates(35, 4, 200)
#> $x
#> [1] 35
#> 
#> $y
#> [1] 2
#>