R/hr_rates.R
hr_rates.Rd
Compute home run rates
hr_rates(age, hr, ab)
Age of the player
Number of home runs
Number of at-bats
a list with two elements:
list
x: the age of the player
x
y: the number of home runs per 100 at-bats
y
https://beanumber.github.io/abdwr3e/02-intro.html#sec-rfunctions
hr_rates(35, 4, 200) #> $x #> [1] 35 #> #> $y #> [1] 2 #>