View source: R/cents_halfcents.R
| cents_halfcents | R Documentation |
Calculate the number of centuries and half-centuries made a batsman in a given season
cents_halfcents(player, yr)
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 |
cents_halfcents returns a tibble with one row and three columns.
library(ipl)
# Calculate the number of centuries and half-centuries made by Virat Kohli
# in the 2016 IPL season
cents_halfcents("V Kohli", 2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.