Package: cricketr 0.0.26

cricketr: Analyze Cricketers and Cricket Teams Based on ESPN Cricinfo Statsguru

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. The package can also be used to analyze team performances.

Authors:Tinniam V Ganesh

cricketr_0.0.26.tar.gz
cricketr_0.0.26.zip(r-4.5)cricketr_0.0.26.zip(r-4.4)cricketr_0.0.26.zip(r-4.3)
cricketr_0.0.26.tgz(r-4.4-any)cricketr_0.0.26.tgz(r-4.3-any)
cricketr_0.0.26.tar.gz(r-4.5-noble)cricketr_0.0.26.tar.gz(r-4.4-noble)
cricketr_0.0.26.tgz(r-4.4-emscripten)cricketr_0.0.26.tgz(r-4.3-emscripten)
cricketr.pdf |cricketr.html
cricketr/json (API)

# Install 'cricketr' in R:
install.packages('cricketr', repos = c('https://tvganesh.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tvganesh/cricketr/issues

Datasets:
  • ashwin - Data set for Ravichandran Ashwin
  • ashwin1 - Data set for Ravichander Ashwin
  • badree - Data set for Samuel Badree
  • devilliers - Data set for AB Devilliers
  • ganguly - Data set for Sourav Ganguly
  • gayle - Data set for Chris Gayle
  • kohli - Data set for Virat Kohli
  • kohli1 - Data set for Virat Kohli
  • kumble - Data set for Anil Kumble
  • kumble1 - Data set for Anil Kumble
  • kumblesp - Data set for Anil Kumble
  • malinga - Data set for Lasith Malinga
  • malinga1 - Data set for Lasith Malinga
  • maxwell - Data set for Glenn Maxwell
  • mendis - Data set for Ajantha Mendis
  • mitchell - Data set for Mitchell Johnson
  • murali - Data set for Muthiah Muralitharan
  • narine - Data set for Sunil Narine
  • sehwag - Data set for Virendar Sehwag
  • sehwag1 - Data set for Virendar Sehwag
  • sehwag2 - Data set for Virendar Sehwag
  • southee - Data set for Tim Southee
  • steyn - Data set for Dale Steyn
  • tendulkar - Data set for Sachin Tendulkar
  • tendulkar1 - Data set for Sachin Tendulkar
  • tendulkar2 - Data set for Sachin Tendulkar
  • tendulkarsp - Data set for Sachin Tendulkar
  • warne - Data set for Shane Warne

On CRAN:

5.55 score 62 stars 115 scripts 272 downloads 67 exports 58 dependencies

Last updated 4 years agofrom:bc40c9a0c2. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-winOKOct 29 2024
R-4.5-linuxOKOct 29 2024
R-4.4-winOKOct 29 2024
R-4.4-macOKOct 29 2024
R-4.3-winOKOct 29 2024
R-4.3-macOKOct 29 2024

Exports:batsman4sbatsman4s6sbatsman6sbatsmanAvgRunsGroundbatsmanAvgRunsOppositionbatsmanContributionWonLostbatsmanCumulativeAverageRunsbatsmanCumulativeStrikeRatebatsmanDismissalsbatsmanMeanStrikeRatebatsmanMovingAveragebatsmanPerfBoxHistbatsmanPerfForecastbatsmanPerfHomeAwaybatsmanRunsFreqPerfbatsmanRunsLikelihoodbatsmanRunsPredictbatsmanRunsRangesbatsmanScoringRateODTTbattingPerf3dbowlerAvgWktsGroundbowlerAvgWktsOppositionbowlerContributionWonLostbowlerCumulativeAvgEconRatebowlerCumulativeAvgWicketsbowlerEconRatebowlerHistWicketsbowlerMovingAveragebowlerPerfForecastbowlerPerfHomeAwaybowlerWktRateTTbowlerWktsFreqPercentbowlerWktsRunsPlotcheckBatsmanInFormcheckBowlerInFormcleancleanBowlerDatacleanTeamDataERgetMatchTypegetPlayerDatagetPlayerDataHAgetPlayerDataODgetPlayerDataOppnHAgetPlayerDataSpgetPlayerDataTTgetTeamDatagetTeamDataHomeAwaygetTeamNumberpercentRunspercentWktsplotTimelineofWinsLossesrelativeBatsmanCumulativeAvgRunsrelativeBatsmanCumulativeStrikeRaterelativeBatsmanSRrelativeBatsmanSRODTTrelativeBowlerCumulativeAvgEconRaterelativeBowlerCumulativeAvgWicketsrelativeBowlingERrelativeBowlingERODTTrelativeBowlingPerfrelativeRunsFreqPerfrelativeRunsFreqPerfODTTrelativeWktRateTTteamWinLossStatusAtGroundsteamWinLossStatusVsOppositionWR

Dependencies:askpassclicolorspacecpp11curldplyrfansifarverforecastfracdiffgenericsggplot2gluegtablehttrisobandjsonlitelabelinglatticelifecyclelmtestlubridatemagrittrMASSMatrixmgcvmimemunsellnlmennetopensslpillarpkgconfigplotrixquadprogquantmodR6RColorBrewerRcppRcppArmadillorlangscalesscatterplot3dsystibbletidyselecttimechangetimeDatetseriesTTRurcautf8vctrsviridisLitewithrXMLxtszoo

Readme and manuals

Help Manual

Help pageTopics
Analyze Cricketers and Cricket Teams Based on ESPN Cricinfo Statsguru 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 & bowlerscricketr-package cricketr
Data set for Ravichandran Ashwinashwin
Data set for Ravichander Ashwinashwin1
Data set for Samuel Badreebadree
Plot the numbers of 4s against the runs scored by batsmanbatsman4s
Compute and plot a stacked barplot of runs,4s and 6sbatsman4s6s
Plot the run range against the number of 6sbatsman6s
This function computes and plots the Average runs scored in the different grounds played by batsmanbatsmanAvgRunsGround
This function computes and plots the Average runs against different opposition played by batsmanbatsmanAvgRunsOpposition
Disply the batsman's contribution in matches that were won and those that were lostbatsmanContributionWonLost
Batsman's cumulative average runsbatsmanCumulativeAverageRuns
Batsman's cumulative average strike ratebatsmanCumulativeStrikeRate
Display a 3D Pie Chart of the dismissals of the batsmanbatsmanDismissals
Calculate and plot the Mean Strike Rate of the batsman on total runs scoredbatsmanMeanStrikeRate
Calculate and plot the Moving Average of the batsman in his careerbatsmanMovingAverage
Make a boxplot and a histogram of the runs scored by the batsmanbatsmanPerfBoxHist
Forecast the batting performance based on past performances using Holt-Winters forecastingbatsmanPerfForecast
This function analyses the performance of the batsman at home and overseasbatsmanPerfHomeAway
Calculate and run frequencies in ranges of 10 runs and plot versus Runs the performance of the batsmanbatsmanRunsFreqPerf
This function uses K-Means to determine the likelihood of the batsman to get runsbatsmanRunsLikelihood
Predict the runs for the batsman given the Balls Faced and Minutes in creasebatsmanRunsPredict
Compute and plot a histogram of the runs scored in ranges of 10batsmanRunsRanges
Compute and plot the predicted scoring rate for a One day batsman or Twenty20batsmanScoringRateODTT
Make a 3D scatter plot of the Runs scored versus the Balls Faced and Minutes at Crease.battingPerf3d
This function computes and plot the average wickets in different groundbowlerAvgWktsGround
This function computes and plot the average wickets against different oppositonbowlerAvgWktsOpposition
Display the bowler's contribution in matches that were won and those that were lostbowlerContributionWonLost
Bowler's cumulative average economy ratebowlerCumulativeAvgEconRate
Bowler's cumulative average wicketsbowlerCumulativeAvgWickets
Compute and plot the Mean Economy Rate versus wickets takenbowlerEconRate
Plot a histogram of Wicket percentages versus wickets takenbowlerHistWickets
Compute and plot the moving average of the wickets taken for a bowlerbowlerMovingAverage
Forecast the bowler performance based on past performances using Holt-Winters forecastingbowlerPerfForecast
This function analyses the performance of the bowler at home and overseasbowlerPerfHomeAway
Compute and plot the Mean number of deliveries versus wickets takenbowlerWktRateTT
Plot the Wickets Frequency as a percentage against wickets takenbowlerWktsFreqPercent
Compute and plot the runs conceded versus the wickets takenbowlerWktsRunsPlot
Check whether the batsman is In-Form or Out-Of-Form by looking at his last 10 percent scorescheckBatsmanInForm
Check whether the bowler is In-Form or Out-Of-Form by looking at his last 10 percent scorescheckBowlerInForm
Create a batsman data frame given the batsman's CSV fileclean
Clean the bowlers data framecleanBowlerData
Clean the team data for Test, ODI and T20cleanTeamData
Data set for AB Devilliersdevilliers
Calculate the mean Economy RateER
Data set for Sourav Gangulyganguly
Data set for Chris Gaylegayle
Get the number of the match type viz.for Test, ODI and T20getMatchType
Get the player data from ESPN Cricinfo based on specific inputs and store in a file in a given directorygetPlayerData
Return the CSV file and a dataframe of a player's matches along with home/away columngetPlayerDataHA
Get the One day player data from ESPN Cricinfo based on specific inputs and store in a file in a given directorygetPlayerDataOD
Return a filtered CSV file for a player against specified opposition, at home/away venues during an intervalgetPlayerDataOppnHA
Get the player data along with venue andgetPlayerDataSp
Get the Twenty20 International player data from ESPN Cricinfo based on specific inputs and store in a file in a given directory~getPlayerDataTT
Get the data for a team in a match type viz.for Test, ODI and T20getTeamData
Get the data for a team in a match type viz.for Test, ODI and T20 with the home/overseas/neutralgetTeamDataHomeAway
Get the number of the TeamgetTeamNumber
Data set for Virat Kohlikohli
Data set for Virat Kohlikohli1
Data set for Anil Kumblekumble
Data set for Anil Kumblekumble1
Data set for Anil Kumblekumblesp
Data set for Lasith Malingamalinga
Data set for Lasith Malingamalinga1
Data set for Glenn Maxwellmaxwell
Data set for Ajantha Mendismendis
Data set for Mitchell Johnsonmitchell
Data set for Muthiah Muralitharanmurali
Data set for Sunil Narinenarine
Calculate the percent runs in each run rangepercentRuns
Calculate the percentage of wickets taken by bowlerpercentWkts
Plot the time line of wins/losses/draw/tied etc for a Team in Test, ODI or T20plotTimelineofWinsLosses
Relative batsman's cumulative average runsrelativeBatsmanCumulativeAvgRuns
Relative batsmen cumulative average strike raterelativeBatsmanCumulativeStrikeRate
Calculate and plot the relative Mean Strike Rate (SR) for each batsmanrelativeBatsmanSR
Calculate and plot the relative Mean Strike Rate (SR) for each batsman for ODI or Twenty20 batsmenrelativeBatsmanSRODTT
Relative Bowler's cumulative average economy raterelativeBowlerCumulativeAvgEconRate
Relative bowlers cumulative average wicketsrelativeBowlerCumulativeAvgWickets
Compute and plot the relative mean Economy Rate(ER) of the bowlersrelativeBowlingER
Compute and plot the relative mean Economy Rate(ER) of the bowlers for ODI or Twenty20relativeBowlingERODTT
Plot the relative performances of bowlersrelativeBowlingPerf
Calculate and compute the relative run frequencies of a list of cricketersrelativeRunsFreqPerf
Calculate and compute the relative run frequencies of a list of cricketersrelativeRunsFreqPerfODTT
Compute and plot the relative Mean Wicket Rate of the bowlers in Twenty20 InternationalrelativeWktRateTT
Data set for Virendar Sehwagsehwag
Data set for Virendar Sehwagsehwag1
Data set for Virendar Sehwagsehwag2
Data set for Tim Southeesouthee
Data set for Dale Steynsteyn
Compute the wins/losses/draw/tied etc for a Team in Test, ODI or T20 at venuesteamWinLossStatusAtGrounds
Compute the wins/losses/draw/tied etc for a Team in Test, ODI or T20 against oppositionteamWinLossStatusVsOpposition
Data set for Sachin Tendulkartendulkar
Data set for Sachin Tendulkartendulkar1
Data set for Sachin Tendulkartendulkar2
Data set for Sachin Tendulkartendulkarsp
Data set for Shane Warnewarne
This function caculates the wicket rate vs mean number of deliveriesWR