View source: R/batting_basics.R
bat_sr | R Documentation |
Calculates a batter's strike rate over a number of innings.
bat_sr(runs_scored, balls_faced)
runs_scored |
A singular value of the runs scored by a batter. |
balls_faced |
A singular value of balls faced by a batter.
Overs can be converted into |
A singular value showing the batter's strike rate per 100 Balls.
A batting strike rate is the average number of runs scored per 100 balls. For example, a strike rate of 135 implies a batter would score 135 runs in a 100 balls. A higher number indicates the batter scores at faster rate. More info here.
bat_sr(runs_scored = 568, balls_faced = 600) total_runs <- sum(c(45, 123, 56, 12, 192, 34, 78, 3, 25)) total_balls <- sum(c(50, 120, 78, 3, 226, 36, 45, 12, 30)) bat_sr( runs_scored = total_runs, balls_faced = total_balls )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.