bat_max: Calculate the maximum runs made by a batsman in a given...

View source: R/bat_max.R

bat_maxR Documentation

Calculate the maximum runs made by a batsman in a given season

Description

Calculate the maximum runs made by a batsman in a given season

Usage

bat_max(player, yr)

Arguments

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

Value

bat_max returns a tbl_df with one row and two columns.

Examples


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)

Swaha294/ipl documentation built on May 10, 2022, 3:23 p.m.