cricketr0.0.26 package

Analyze Cricketers and Cricket Teams Based on ESPN Cricinfo Statsguru

relativeBatsmanCumulativeStrikeRate

Relative batsmen cumulative average strike rate

batsman4s

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

batsman4s6s

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

batsman6s

Plot the run range against the number of 6s

batsmanAvgRunsGround

This function computes and plots the Average runs scored in the differ...

batsmanAvgRunsOpposition

This function computes and plots the Average runs against different op...

batsmanContributionWonLost

Disply the batsman's contribution in matches that were won and those t...

batsmanCumulativeAverageRuns

Batsman's cumulative average runs

batsmanCumulativeStrikeRate

Batsman's cumulative average strike rate

batsmanDismissals

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

batsmanMeanStrikeRate

Calculate and plot the Mean Strike Rate of the batsman on total runs s...

batsmanMovingAverage

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

batsmanPerfBoxHist

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

batsmanPerfForecast

Forecast the batting performance based on past performances using Holt...

batsmanPerfHomeAway

This function analyses the performance of the batsman at home and over...

batsmanRunsFreqPerf

Calculate and run frequencies in ranges of 10 runs and plot versus Run...

batsmanRunsLikelihood

This function uses K-Means to determine the likelihood of the batsman ...

batsmanRunsPredict

Predict the runs for the batsman given the Balls Faced and Minutes in ...

batsmanRunsRanges

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

batsmanScoringRateODTT

Compute and plot the predicted scoring rate for a One day batsman or T...

battingPerf3d

Make a 3D scatter plot of the Runs scored versus the Balls Faced and M...

bowlerAvgWktsGround

This function computes and plot the average wickets in different groun...

bowlerAvgWktsOpposition

This function computes and plot the average wickets against different ...

bowlerContributionWonLost

Display the bowler's contribution in matches that were won and those t...

bowlerCumulativeAvgEconRate

Bowler's cumulative average economy rate

bowlerCumulativeAvgWickets

Bowler's cumulative average wickets

bowlerEconRate

Compute and plot the Mean Economy Rate versus wickets taken

bowlerHistWickets

Plot a histogram of Wicket percentages versus wickets taken

bowlerMovingAverage

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

bowlerPerfForecast

Forecast the bowler performance based on past performances using Holt-...

bowlerPerfHomeAway

This function analyses the performance of the bowler at home and overs...

bowlerWktRateTT

Compute and plot the Mean number of deliveries versus wickets taken

bowlerWktsFreqPercent

Plot the Wickets Frequency as a percentage against wickets taken

bowlerWktsRunsPlot

Compute and plot the runs conceded versus the wickets taken

checkBatsmanInForm

Check whether the batsman is In-Form or Out-Of-Form by looking at his ...

checkBowlerInForm

Check whether the bowler is In-Form or Out-Of-Form by looking at his l...

clean

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

cleanBowlerData

Clean the bowlers data frame

cleanTeamData

Clean the team data for Test, ODI and T20

cricketr-package

tools:::Rd_package_title("cricketr")This package analyzes the performa...

ER

Calculate the mean Economy Rate

getMatchType

Get the number of the match type viz.for Test, ODI and T20

getPlayerData

Get the player data from ESPN Cricinfo based on specific inputs and st...

getPlayerDataHA

Return the CSV file and a dataframe of a player's matches along with h...

getPlayerDataOD

Get the One day player data from ESPN Cricinfo based on specific input...

getPlayerDataOppnHA

Return a filtered CSV file for a player against specified opposition, ...

getPlayerDataSp

Get the player data along with venue and

getPlayerDataTT

Get the Twenty20 International player data from ESPN Cricinfo based on...

getTeamData

Get the data for a team in a match type viz.for Test, ODI and T20

getTeamDataHomeAway

Get the data for a team in a match type viz.for Test, ODI and T20 with...

getTeamNumber

Get the number of the Team

percentRuns

Calculate the percent runs in each run range

percentWkts

Calculate the percentage of wickets taken by bowler

plotTimelineofWinsLosses

Plot the time line of wins/losses/draw/tied etc for a Team in Test, OD...

relativeBatsmanCumulativeAvgRuns

Relative batsman's cumulative average runs

relativeBatsmanSR

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

relativeBatsmanSRODTT

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

relativeBowlerCumulativeAvgEconRate

Relative Bowler's cumulative average economy rate

relativeBowlerCumulativeAvgWickets

Relative bowlers cumulative average wickets

relativeBowlingER

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

relativeBowlingERODTT

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

relativeBowlingPerf

Plot the relative performances of bowlers

relativeRunsFreqPerf

Calculate and compute the relative run frequencies of a list of cricke...

relativeRunsFreqPerfODTT

Calculate and compute the relative run frequencies of a list of cricke...

relativeWktRateTT

Compute and plot the relative Mean Wicket Rate of the bowlers in Twent...

teamWinLossStatusAtGrounds

Compute the wins/losses/draw/tied etc for a Team in Test, ODI or T20 a...

teamWinLossStatusVsOpposition

Compute the wins/losses/draw/tied etc for a Team in Test, ODI or T20 a...

WR

This function caculates the wicket rate vs mean number of deliveries

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.

  • Maintainer: Tinniam V Ganesh
  • License: MIT + file LICENSE
  • Last published: 2021-03-23