cents_halfcents: Calculate the number of centuries and half-centuries made a...

View source: R/cents_halfcents.R

cents_halfcentsR Documentation

Calculate the number of centuries and half-centuries made a batsman in a given season

Description

Calculate the number of centuries and half-centuries made a batsman in a given season

Usage

cents_halfcents(player, yr)

Arguments

player

The batsman for whom the number of centuries and half-centuries have to be calculated, as a character vectors

yr

The season (year) for which the number of centuries and half-centuries for the given batsman have to be calculated, as a numeric vector

Value

cents_halfcents returns a tibble with one row and three columns.

Examples


library(ipl)

# Calculate the number of centuries and half-centuries made by Virat Kohli
# in the 2016 IPL season

cents_halfcents("V Kohli", 2016)

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