knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

ipl

Lifecycle: experimental CRAN status R-CMD-check

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.

Description

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.

Installation

You can install the development version of ipl like so:

remotes::install_github("Swaha294/ipl")

Datasets Included

Functions Included

The following functions allow for individual analyses of cricketers and IPL matches, as well as for combined statistical analysis of the same.

Basic Usage

These 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)
  1. Visualize the number of runs made by Mumbai Indians in their match against Delhi Capitals on 2019-03-24, by partnerships
partnership_runs(1175358, "Mumbai Indians")
  1. Get the summary table of all batting statistics for MS Dhoni for all IPL matches he played between 2008 and 2020
batsman_summary("MS Dhoni")
  1. Get the summary table of wins and losses for Sunrisers Hyderabad in 2017
winloss("Sunrisers Hyderabad", 2017)
  1. Get the bowling analysis for Rahul Sharma
bowling_analysis("Rahul Sharma")

More examples can be found in the vignette.

Contributors



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