knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of ipl
is to provide data and functions related to the Indian Premier League (IPL) matches and standard cricket statistics. This package allows users to avail of IPL data and conduct analysis of cricketers and IPL teams using functions of this package.
This is package is important because there isn't a consolidated database where one can find all the data to analyse past IPL matches and players. These functions will also aid in conducting data analysis for those who are interested in analysing IPL trends.
The ipl
R package consists of datasets on all IPL matches played in the years 2008-2020, and provides functions to calculate typical crickets statistics.
Our package includes datasets on IPL matches played and cricketers in the years 2008-2020, acquired primarily from Kaggle, which have been cleaned so users can use it directly for data analysis. Moreover, it comprises functions for analysis of individual cricketers and games, as well as summary statistics for the same.
You can install the development version of ipl
like so:
remotes::install_github("Swaha294/ipl")
deliveries
: Ball-by-ball data of IPL matches played in 2008-2020 teams
: Winning team, overs bowled, runs made and wickets fallen for each match played by each IPL team in 2008-2020ipl
: More information on matches from 2008 to 2020batsman_100
: Information of top 100 batsmen of IPLbowlers_100
: Information of top 100 bowlers of IPLThe following functions allow for individual analyses of cricketers and IPL matches, as well as for combined statistical analysis of the same.
bat_avg
\~ 134,112 Bbat_max
\~ 113,136 Bbatsman_summary
\~ 130,616 Bbowler_score
\~ 81,216 Bbowler_summary
\~ 90,000 Bbowling_analysis
\~ 93,216 Bcents_halfcents
\~ 120,688 Bfours
\~ 87,072 Bovers_balls
\~ 90,600 Bovers
\~ 77,240 Bpartnership_runs
\~ 93,000 Bruns
\~ 76,984 Bsixes
\~ 87,072 strike_rate
\~ 118,520 Btoss_choice
\~ 87,016 Bwickets_taken
\~ 77,888 Bwinloss
\~ 120,768 BThese are a few examples of how to use the package to compute different statistics for cricketers and IPL matches
Load ipl
R package
library(ipl)
partnership_runs(1175358, "Mumbai Indians")
batsman_summary("MS Dhoni")
winloss("Sunrisers Hyderabad", 2017)
bowling_analysis("Rahul Sharma")
More examples can be found in the vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.