strike_rate: Calculate strike rate of a given batsman in a given season

View source: R/strike_rate.R

strike_rateR Documentation

Calculate strike rate of a given batsman in a given season

Description

Calculate strike rate of a given batsman in a given season

Usage

strike_rate(player, yr)

Arguments

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

Value

strike_rate returns a tibble with one row and two columns.

Examples


library(ipl)

# Calculate the strike rate of MS Dhoni in the 2016 IPL season
strike_rate("MS Dhoni", 2016)

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