Learn R Programming

⚠️There's a newer version (0.0.26) of this package.Take me there.

cricketr (version 0.0.12)

Analyze Cricketers Based on ESPN Cricinfo Statsguru

Description

Tools for analyzing performances of cricketers based on stats in ESPN Cricinfo Statsguru. The toolset can be used for analysis of Tests,ODIs and Twenty20 matches of both batsmen and bowlers.

Copy Link

Version

Install

install.packages('cricketr')

Monthly Downloads

222

Version

0.0.12

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tinniam Ganesh

Last Published

January 1st, 2016

Functions in cricketr (0.0.12)

batsman6s

Plot the run range against the number of 6s
batsmanRunsLikelihood

This function uses K-Means to determine the likelihood of the batsman to get runs
checkBowlerInForm

Check whether the bowler is In-Form or Out-Of-Form by looking at his last 10 percent scores
kumble

Data set for Anil Kumble
batsmanAvgRunsOpposition

This function computes and plots the Average runs against different opposition played by batsman
bowlerAvgWktsOpposition

This function computes and plot the average wickets against different oppositon
batsmanRunsPredict

Predict the runs for the batsman given the Balls Faced and Minutes in crease
bowlerPerfForecast

Forecast the bowler performance based on past performances using Holt-Winters forecasting
getPlayerData

Get the player data from ESPN Cricinfo based on specific inputs and store in a file in a given directory
bowlerWktRateTT

Compute and plot the Mean number of deliveries versus wickets taken
tendulkar1

Data set for Sachin Tendulkar
gayle

Data set for Chris Gayle
ashwin1

Data set for Ravichander Ashwin
cricketr-package

This package analyzes the performances of cricketers using ESPN Cricinfo Statsguru data. The analysis can be done for Test, ODI and Twenty20 cricket for both batsman & bowlers
batsmanRunsRanges

Compute and plot a histogram of the runs scored in ranges of 10
WR

This function caculates the wicket rate vs mean number of deliveries
relativeBatsmanSRODTT

Calculate and plot the relative Mean Strike Rate (SR) for each batsman for ODI or Twenty20 batsmen
relativeRunsFreqPerfODTT

Calculate and compute the relative run frequencies of a list of cricketers
relativeRunsFreqPerf

Calculate and compute the relative run frequencies of a list of cricketers
batsmanContributionWonLost

Disply the batsman's contribution in matches that were won and those that were lost
bowlerAvgWktsGround

This function computes and plot the average wickets in different ground
bowlerEconRate

Compute and plot the Mean Economy Rate versus wickets taken
batsman4s

Plot the numbers of 4s against the runs scored by batsman
kumblesp

Data set for Anil Kumble
bowlerHistWickets

Plot a histogram of Wicket percentages versus wickets taken
tendulkar

Data set for Sachin Tendulkar
batsman4s6s

Compute and plot a stacked barplot of runs,4s and 6s
batsmanScoringRateODTT

Compute and plot the predicted scoring rate for a One day batsman or Twenty20
batsmanAvgRunsGround

This function computes and plots the Average runs scored in the different grounds played by batsman
sehwag

Data set for Virendar Sehwag
bowlerMovingAverage

Compute and plot the moving average of the wickets taken for a bowler
cleanBowlerData

Clean the bowlers data frame
percentRuns

Calculate the percent runs in each run range
relativeBowlingER

Compute and plot the relative mean Economy Rate(ER) of the bowlers
maxwell

Data set for Glenn Maxwell
kohli

Data set for Virat Kohli
kohli1

Data set for Virat Kohli
narine

Data set for Sunil Narine
dravid

Data set for Rahul Dravid
bowlerWktsFreqPercent

Plot the Wickets Frequency as a percentage against wickets taken
badree

Data set for Samuel Badree
murali

Data set for Muthiah Muralitharan
relativeBowlingPerf

Plot the relative performances of bowlers
bowlerContributionWonLost

Display the bowler's contribution in matches that were won and those that were lost
mendis

Data set for Ajantha Mendis
ER

Calculate the mean Economy Rate
batsmanDismissals

Display a 3D Pie Chart of the dismissals of the batsman
batsmanPerfBoxHist

Make a boxplot and a histogram of the runs scored by the batsman
getPlayerDataOD

Get the One day player data from ESPN Cricinfo based on specific inputs and store in a file in a given directory
bowlerPerfHomeAway

This function analyses the performance of the bowler at home and overseas
ashwin

Data set for Ravichandran Ashwin
clean

Create a batsman data frame given the batsman's CSV file
checkBatsmanInForm

Check whether the batsman is In-Form or Out-Of-Form by looking at his last 10 percent scores
getPlayerDataSp

Get the player data along with venue and
bowlerWktsRunsPlot

Compute and plot the runs conceded versus the wickets taken
sehwag1

Data set for Virendar Sehwag
kumble1

Data set for Anil Kumble
percentWkts

Calculate the percentage of wickets taken by bowler
sehwag2

Data set for Virendar Sehwag
steyn

Data set for Dale Steyn
malinga1

Data set for Lasith Malinga
battingPerf3d

Make a 3D scatter plot of the Runs scored versus the Balls Faced and Minutes at Crease.
tendulkarsp

Data set for Sachin Tendulkar
mitchell

Data set for Mitchell Johnson
relativeWktRateTT

Compute and plot the relative Mean Wicket Rate of the bowlers in Twenty20 International
warne

Data set for Shane Warne
batsmanMeanStrikeRate

Calculate and plot the Mean Strike Rate of the batsman on total runs scored
ganguly

Data set for Sourav Ganguly
batsmanPerfHomeAway

This function analyses the performance of the batsman at home and overseas
getPlayerDataTT

Get the Twenty20 International player data from ESPN Cricinfo based on specific inputs and store in a file in a given directory~
malinga

Data set for Lasith Malinga
relativeBatsmanSR

Calculate and plot the relative Mean Strike Rate (SR) for each batsman
relativeBowlingERODTT

Compute and plot the relative mean Economy Rate(ER) of the bowlers for ODI or Twenty20
tendulkar2

Data set for Sachin Tendulkar
batsmanPerfForecast

Forecast the batting performance based on past performances using Holt-Winters forecasting
batsmanMovingAverage

Calculate and plot the Moving Average of the batsman in his career
batsmanRunsFreqPerf

Calculate and run frequencies in ranges of 10 runs and plot versus Runs the performance of the batsman
southee

Data set for Tim Southee
devilliers

Data set for AB Devilliers