bat_max | R Documentation |
Calculate the maximum runs made by a batsman in a given season
bat_max(player, yr)
player |
the batsman for whom maximum runs have to be calculated, as a character vector |
yr |
the season for which the maximum runs of the given batsman have to be calculated, as a numeric vector |
bat_max
returns a tbl_df
with one row and two columns.
library(ipl) # Find maximum runs made by Virat Kohli in the year 2016 bat_max("V Kohli", 2016) # Find maximum runs made by AB de Villiers in the year 2019 bat_max("AB de Villiers", 2019)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.