fours: Find a batsman's total number of fours

View source: R/fours.R

foursR Documentation

Find a batsman's total number of fours

Description

Find a batsman's total number of fours

Usage

fours(player_name, yr)

Arguments

player_name

A batsman for whom we want to calculate the number of fours they scored

yr

The year for which the number of fours for the given batsman is to be calculated

Value

fours return number of fours for the given player as a value

Examples

library(ipl)
# Find the total number of fours scored by Suresh Raina in the 2014 IPL season
fours("SK Raina", 2014)

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