sixes: Find a batsman's total number of sixes

View source: R/sixes.R

sixesR Documentation

Find a batsman's total number of sixes

Description

Find a batsman's total number of sixes

Usage

sixes(player_name, yr)

Arguments

player_name

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

yr

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

Value

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

Examples

library(ipl)

# Find the total number of sixes scored by Rohit Sharma in the 2017 IPL season
sixes("RG Sharma", 2017)

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