strike_rate | R Documentation |
Calculate strike rate of a given batsman in a given season
strike_rate(player, yr)
player |
The batsman whose strike rate has to be calculated, as a character vector |
yr |
The year for which the strike rate of the given batsman has to be calculated, as a numeric vector |
strike_rate
returns a tibble with one row and two columns.
library(ipl) # Calculate the strike rate of MS Dhoni in the 2016 IPL season strike_rate("MS Dhoni", 2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.