Type: | Package |
Version: | 0.0.42 |
Title: | Analyze Cricket Performances Based on Data from Cricsheet |
Description: | Analyzing performances of cricketers and cricket teams based on 'yaml' match data from Cricsheet https://cricsheet.org/. |
Date: | 2024-03-24 |
Author: | Tinniam V Ganesh |
Maintainer: | Tinniam V Ganesh <tvganesh.85@gmail.com> |
License: | MIT + file LICENSE |
Depends: | R (≥ 3.5.0) |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.3 |
Imports: | dplyr, ggplot2, reshape2, yaml, gridExtra, rpart.plot, stats, utils |
URL: | https://github.com/tvganesh/yorkr/ |
NeedsCompilation: | no |
Packaged: | 2024-03-24 04:52:24 UTC; tvganesh |
Repository: | CRAN |
Date/Publication: | 2024-03-24 17:10:02 UTC |
Batsman's cumulative average runs
Description
This function computes and plots the cumulative average runs of a batsman
Usage
batsmanCumulativeAverageRuns(df,name= "A Leg Glance",dateRange,staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanCumulativeStrikeRate
bowlerCumulativeAvgEconRate
bowlerCumulativeAvgWickets
batsmanRunsVsStrikeRate
batsmanRunsPredict
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanCumulativeAverageRuns(kohli,"Kohli",dateRange)
## End(Not run)
Batsman's cumulative average strike rate
Description
This function computes and plots the cumulative average strike rate of a batsman
Usage
batsmanCumulativeStrikeRate(df,name= "A Leg Glance",dateRange, staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanCumulativeAverageRuns
bowlerCumulativeAvgEconRate
bowlerCumulativeAvgWickets
batsmanRunsVsStrikeRate
batsmanRunsPredict
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanCumulativeStrikeRate(kohli,"Kohli",dateRange)
## End(Not run)
Dismissal type of batsmen
Description
This function computes and plots the type of dismissals of the the batsman
Usage
batsmanDismissals(df,name="A Leg Glance",dateRange)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanDismissals(kohli,"Kohli",dateRange)
## End(Not run)
Batsman's total runs, fours and sixes
Description
This function computes and plots the total runs, fours and sixes of the batsman
Usage
batsmanFoursSixes(df,name= "A Leg Glance",dateRange,staticIntv)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsVsStrikeRate
batsmanRunsPredict
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
kohli46 <- select(kohli,batsman,ballsPlayed,fours,sixes,runs)
batsmanFoursSixes(kohli46,"Kohli",dateRange)
## End(Not run)
Moving average of batsman
Description
This function plots the runs scored by the batsman over the career as a time series. A loess regression line is plotted on the moving average of the batsman the batsman
Usage
batsmanMovingAverage(df, name= "A Leg Glance",dateRange,staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanMovingAverage(kohli,"Kohli",dateRange)
## End(Not run)
Batsman runs against different oppositions
Description
This function computes and plots the mean runs scored by the batsman against different oppositions
Usage
batsmanRunsAgainstOpposition(df, name= "A Leg Glance",dateRange,staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsAgainstOpposition(kohli,"Kohli",dateRange)
## End(Not run)
Predict deliveries to runs scored
Description
This function uses a classification tree to predict the number of deliveries required for the batsman to score the runs. It uses the package rpart to perform the classification
Usage
batsmanRunsPredict(df, name= "A Leg Glance",dateRange)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVsStrikeRate(kohli,"Kohli",dateRange)
## End(Not run)
Batsman runs at different venues
Description
This function computes and plots the mean runs scored by the batsman at different venues of the world
Usage
batsmanRunsVenue(df, name= "A Leg Glance",dateRange,staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches
batsmanRunsAgainstOpposition
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVenue(kohli,"Kohli",dateRange)
## End(Not run)
Runs versus deliveries faced
Description
This function plots the runs scored and the deliveries required. A regression smoothing function is used to fit the points
Usage
batsmanRunsVsDeliveries(df, name= "A Late Cut",dateRange,staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVsDeliveries(kohli,"Kohli")
## End(Not run)
Batsman runs versus strike rate
Description
This function plots the runs scored by the batsman and the runs scored by the batsman. A loess line is fitted over the points
Usage
batsmanRunsVsStrikeRate(df, name= "A Late Cut",dateRange,staticIntv=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches
Examples
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVsStrikeRate(kohli,"Kohli",dateRange)
## End(Not run)
Performance of batsman vs bowler
Description
This function computes the performance of batsman vs bowler
Usage
batsmanVsBowlerPerf(t20MDF,batsman1,bowler1)
Arguments
t20MDF |
Dataframe |
batsman1 |
The batsman |
bowler1 |
The bowler |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
Examples
## Not run:
batsmanVsBowlerPerf(t20MDF,batsman1,bowler1)
## End(Not run)
Plot the batsman win probability contribution using Deep Learning model
Description
This function plots the win probability of batsman in a T20 match
Usage
batsmanWinProbDL(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
batsmanWinProbDL(a,'England',"Pakistan")
## End(Not run)
Plot the batsman win probability using Logistic Regression model
Description
This function plots the batsman win probability of the teams in a T20 match
Usage
batsmanWinProbLR(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
batsmanWinProbLR(a,'England',"Pakistan")
## End(Not run)
Bowler's cumulative average economy rate
Description
This function computes and plots the cumulative average economy rate of a bowler
Usage
bowlerCumulativeAvgEconRate(df,name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanCumulativeAverageRuns
bowlerCumulativeAvgWickets
batsmanCumulativeStrikeRate
batsmanRunsVsStrikeRate
batsmanRunsPredict
Examples
## Not run: )
#'Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerCumulativeAvgEconRate(jadeja,"RA Jadeja",dateRange)
## End(Not run)
Bowler's cumulative average wickets
Description
This function computes and plots the cumulative average wickets of a bowler
Usage
bowlerCumulativeAvgWickets(df,name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanCumulativeAverageRuns
bowlerCumulativeAvgEconRate
batsmanCumulativeStrikeRate
batsmanRunsVsStrikeRate
batsmanRunsPredict
Examples
## Not run: )
#'Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerCumulativeAvgWickets(jadeja,"RA Jadeja",dateRange)
## End(Not run)
Number of deliveries to wickets
Description
This function creates a dataframe of balls bowled versus the wickets taken by the bowler
Usage
bowlerDeliveryWickets(match,theTeam,name)
Arguments
match |
Data frame of the match |
theTeam |
The team for which the delivery wickets have to be computed |
name |
The name of the bowler |
Value
dataframe
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
bowlerDeliveryWickets
bowlerMeanEconomyRate
bowlerMeanRunsConceded
Examples
## Not run:
#Get match data
match <- getMatchDetails("England","Pakistan","2006-09-05",dir="../data")
bowlerDeliveryWickets(match,"India","Jadeja")
## End(Not run)
Mean economy rate versus number of overs
Description
This function computes and plots mean economy rate and the number of overs bowled by the bowler
Usage
bowlerMeanEconomyRate(df, name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of bowler |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerMeanEconomyRate(jadeja,"RA Jadeja")
## End(Not run)
Mean runs conceded versus overs
Description
This function computes and plots mean runs conceded by the bowler for the number of overs bowled by the bowler
Usage
bowlerMeanRunsConceded(df, name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of bowler |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerMeanRunsConceded(jadeja,"RA Jadeja",dateRange)
## End(Not run)
Bowler's moving average of wickets
Description
This function computes and plots the wickets taken by the bowler over career. A loess regression fit plots the moving average of wickets taken by bowler
Usage
bowlerMovingAverage(df, name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of bowler |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMeanEconomyRate
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerMeanRunsConceded(jadeja,"RA Jadeja",dateRange,staticIntv=1)
## End(Not run)
Performance of bowler vs batsman
Description
This function computes the performance of bowler vs batsman
Usage
bowlerVsBatsmanPerf(t20MDF,batsman1,bowler1)
Arguments
t20MDF |
Dataframe |
batsman1 |
The batsman |
bowler1 |
The bowler |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
Examples
## Not run:
bowlerVsBatsmanPerf(t20MDF,batsman1,bowler1)
## End(Not run)
Bowler wickets versus different teams
Description
This function computes and plots mean number of wickets taken by the bowler against different opposition
Usage
bowlerWicketsAgainstOpposition(df, name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of bowler |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerWicketsAgainstOpposition(jadeja,"RA Jadeja",dateRange)
## End(Not run)
Bowler performance at different venues
Description
This function computes and plots mean number of wickets taken by the bowler in different venues
Usage
bowlerWicketsVenue(df, name,dateRange,staticIntv1=1)
Arguments
df |
Data frame |
name |
Name of bowler |
dateRange |
Date interval to consider |
staticIntv1 |
Static or interactive -staticIntv1 =1 (static plot) & staticIntv1 =2 (interactive plot) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get the data frame for RA Jadeja
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
bowlerWicketsVenue(jadeja,"RA Jadeja",dateRange)
## End(Not run)
Plot the Bowler win probability contribution using Deep Learning model
Description
This function plots the win probability of bowlers in a T20 match
Usage
bowlerWinProbDL(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# t
bowlerWinProbDL(a,'England',"Pakistan")
## End(Not run)
Plot the bowler win probability using Logistic Regression model
Description
This function plots the win probability of the teams in a T20 match
Usage
bowlerWinProbLR(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
bowlerWinProbLR(a,'England',"Pakistan")
## End(Not run)
Predict the deliveries required to wickets
Description
This function uses a classification tree to compute the number deliveries needed versus the wickets taken
Usage
bowlerWktsPredict(df, name,dateRange)
Arguments
df |
Data frame |
name |
Name of bowler |
dateRange |
Date interval to consider |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get the data frame for RA Jadeja
jadeja1 <- getDeliveryWickets(team="India",name="Jadeja",save=FALSE)
bowlerWktsPredict(jadeja1,"RA Jadeja",dateRange)
## End(Not run)
Convert and save all Yaml files to dataframes
Description
This function coverts all Yaml files from source directory to data frames. The data frames are then stored as .RData. The saved files are of the format team1-team2-date.RData For e.g. England-India-2008-04-06.RData etc
Usage
convertAllYaml2RDataframes(sourceDir=".",targetDirMen=".",targetDirWomen=".")
Arguments
sourceDir |
The source directory of the yaml files |
targetDirMen |
The target directory in which the data frames for men are stored as RData files |
targetDirWomen |
The target directory in which the data frames for women are stored as RData files |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
convertYaml2RDataframe
Examples
## Not run:
# In the example below ../yamldir is the source dir for the yaml files
convertAllYaml2RDataframes("../yamldir","../data")
## End(Not run)
Convert and save all T20 Yaml files to dataframes
Description
This function coverts all T20 Yaml files from source directory to data frames. The data frames are then stored as .RData. The saved files are of the format team1-team2-date.RData For e.g. England-India-2008-04-06.RData etc
Usage
convertAllYaml2RDataframesT20(sourceDir=".",targetDirMen=".",targetDirWomen=".")
Arguments
sourceDir |
The source directory of the yaml files |
targetDirMen |
The target directory in which the data frames of men are stored as RData files |
targetDirWomen |
The target directory in which the data frames of women are stored as RData files |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
convertYaml2RDataframeT20
Examples
## Not run:
# In the example below ../yamldir is the source dir for the yaml files
convertAllYaml2RDataframesT20("../yamldir","../data")
## End(Not run)
Converts and save yaml files to dataframes
Description
This function coverts all Yaml files from source directory to data frames. The data frames are then stored as .RData. The saved file is of the format team1-team2-date.RData For e.g. England-India-2008-04-06.RData etc
Usage
convertYaml2RDataframe(yamlFile,sourceDir=".",targetDir=".")
Arguments
yamlFile |
The yaml file to be converted to dataframe and saved |
sourceDir |
The source directory of the yaml file |
targetDir |
The target directory in which the data frame is stored as RData file |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
convertAllYaml2RDataframes
Examples
## Not run:
# In the example below ../yamldir c
convertYaml2RDataframe("225171.yaml",".","../data")
## End(Not run)
Converts and save T20 yaml files to dataframes
Description
This function coverts all T20 Yaml files from source directory to data frames. The data frames are then stored as .RData. The saved file is of the format team1-team2-date.RData For e.g. England-India-2008-04-06.RData etc
Usage
convertYaml2RDataframeT20(yamlFile,sourceDir=".",targetDir=".")
Arguments
yamlFile |
The yaml file to be converted to dataframe and saved |
sourceDir |
The source directory of the yaml file |
targetDir |
The target directory in which the data frame is stored as RData file |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
convertAllYaml2RDataframesT20
Examples
## Not run:
# In the example below ../yamldir c
convertYaml2RDataframe("225171.yaml",".","../data")
## End(Not run)
Get data on all matches against all opposition
Description
This function gets all the matches for a particular team for e.g India, Pakistan, Australia etc against all other oppositions. It constructs a huge dataframe of all these matches. This can be saved by the user which can be used in function in which analyses are done for all matches and for all oppositions. This is done by loading the saved .RData for each match and performing an rbind of the data frames for each match
Usage
getAllMatchesAllOpposition(team,dir=".",save=FALSE,odir=".")
Arguments
team |
The team for which all matches and all opposition has to be obtained e.g. India, Pakistan |
dir |
The input directory |
save |
Default=FALSE. This parameter indicates whether the combined data frame needs to be saved or not. It is recommended to save this large dataframe as the creation of this data frame takes a several seconds depending on the number of matches |
odir |
The output directory |
Value
match The combined data frame
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
# Get all matches for team India
getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
getAllMatchesAllOpposition("Australia",dir="./mysavedata/",save=TRUE)
## End(Not run)
Get data on all matches between 2 opposing teams
Description
This function gets all the data on matches between opposing teams for e.g India-Pakistan, Englad-Australia, South Africa- Sri Lanka etc. It constructs a huge dataframe of all these matches. This can be saved by the user which can be used in function in which analyses are done for all matches between these teams. This is done by loading the saved .RData for each match and performing an rbind of the data frames for each match
Usage
getAllMatchesBetweenTeams(team1,team2,dir=".",save=FALSE,odir = ".")
Arguments
team1 |
One of the team in consideration e.g (India, Australia, England) |
team2 |
The other team for which matches are needed e.g( India, Sri Lanka, Pakistan) |
dir |
The input directory which has the RData files of matches between teams |
save |
Default=FALSE. This parameter indicates whether the combined data frame needs to be saved or not. It is recommended to save this large dataframe as the creation of this data frame takes a several seconds depending on the number of matches |
odir |
The output directory |
Value
matches The combined data frame
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
bowlerWicketsVenue
getAllMatchesAllOpposition
Examples
## Not run:
# Get all matches for team India
getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
getAllMatchesAllOpposition("Australia",dir="./mysavedata/",save=TRUE)
## End(Not run)
Gets the BBL batting details
Description
This function creates a single datframe of all BBL batsmen
Usage
getBBLBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the BBL bowling details
Description
This function creates a single datframe of all BBL bowling
Usage
getBBLBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
Get batting details of batsman from match
Description
This function gets the batting details of a batsman given the match data as a RData file
Usage
getBatsmanDetails(team,name,dir=".")
Arguments
team |
The team of the batsman e.g. India |
name |
Name of batsman |
dir |
The directory where the source file exists |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanRunsPredict
batsmanMovingAverage
bowlerWicketsVenue
bowlerMeanRunsConceded
Examples
## Not run:
getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
## End(Not run)
Get the bowling details of a bowler
Description
This function gets the bowling of a bowler (overs,maidens,runs,wickets,venue, opposition)
Usage
getBowlerWicketDetails(team,name,dir=".")
Arguments
team |
The team to which the bowler belongs |
name |
The name of the bowler |
dir |
The source directory of the data |
Value
dataframe The dataframe of bowling performance
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
getTeamBowlingDetails
bowlerMeanRunsConceded
teamBowlersWicketRunsOppnAllMatches
Examples
## Not run:
# Get the bowling details of bowlers of a team e.g. India. This is saved as a dataframe
c <- getTeamBowlingDetails("India",dir="../data",save=TRUE)
#Get the bowler details from this overall data frame
jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=".")
# The dataframe from the above call is used in many functions
#bowlerMeanEconomyRate(jadeja,"RA Jadeja")
## End(Not run)
Gets the CPL batting details
Description
This function creates a single datframe of all CPL batting
Usage
getCPLBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBBLBattingDetails
getBBLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the CPL bowling details
Description
This function creates a single datframe of all CPL bowling
Usage
getCPLBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Get datframe of deliveries bowled and wickets taken
Description
This function creates a data frame of deliveries bowled and wickets taken. This data frame is then used by bowlerWktsPredict to predict the number of deliveries to wickets taken
Usage
getDeliveryWickets(team,dir=".",name,save=FALSE)
Arguments
team |
The team for which dataframe is to be obtained |
dir |
The source directory in which the match .RData files exist |
name |
The name of the bowler |
save |
Whether the data frame needs to be saved to a file or nor |
Value
dataframe The dataframe of delivery wickets
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
bowlerMovingAverage
getTeamBowlingDetails
bowlerWktsPredict
teamBowlersWicketRunsOppnAllMatches
Examples
## Not run:
# Create a data frame of deliveries to wickets from the stored .RData files
jadeja1 <- getDeliveryWickets(team="India",dir="../data",name="Jadeja",save=FALSE)
# Use this to create a classification tree of deliveries to wickets
bowlerWktsPredict(jadeja1,"RA Jadeja")
## End(Not run)
Gets the IPL batting details
Description
This function creates a single datframe of all IPL batting
Usage
getIPLBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBBLBattingDetails
getBBLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the IPL bowling details
Description
This function creates a single datframe of all IPL bowling
Usage
getIPLBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Get match details of 2 countries
Description
This function gets the details of a matc palyed between 2 countries from the saved RData files and returns a dataframe
Usage
getMatchDetails(team1,team2,date,dir=".")
Arguments
team1 |
The 1st team in the match |
team2 |
The 2nd team in the matcj |
date |
The date on which the match was played |
dir |
The source directory of the RData files with all matches |
Value
match The dataframe of the match
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
getTeamBattingDetails
getTeamBowlingDetails
Examples
## Not run:
# convertAllYaml2RDataframes() & convertYaml2RDataframe convert yaml files
# to data frame and store as RData
# We have to point to this directory for the call below
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../data")
# Use this to create a classification tree of deliveries to wickets
bowlerWktsPredict(jadeja1,"RA Jadeja")
## End(Not run)
Gets the NTB batting details
Description
This function creates a single datframe of all NTB batting
Usage
getNTBBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBBLBattingDetails
getBBLBowlingDetails
getIPLBattingDetails
getIPLBowlingDetails
Gets the NTB bowling details
Description
This function creates a single datframe of all NTB bowling
Usage
getNTBBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory https://cricsheet.org/ |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
Gets the ODI batting details
Description
This function creates a single datframe of all ODI batting
Usage
getODIBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBBLBattingDetails
getBBLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the ODI bowling details
Description
This function creates a single datframe of all ODI bowling
Usage
getODIBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
Gets the PSL batting details
Description
This function creates a single datframe of all PSL batting
Usage
getPSLBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBBLBattingDetails
getBBLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the PSL bowling details
Description
This function creates a single datframe of all PSL bowling
Usage
getPSLBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
Gets the SSM batting details
Description
This function creates a single datframe of all SSM batsmen
Usage
getSSMBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the SSM bowling details
Description
This function creates a single datframe of all SSM bowling
Usage
getSSMBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
Gets the T20 batting details
Description
This function creates a single datframe of all T20 batting
Usage
getT20BattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBBLBattingDetails
getBBLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the T20 bowling details
Description
This function creates a single datframe of all T20 bowling
Usage
getT20BowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
Get team batting details
Description
This function gets the batting details of a team in all matchs against all oppositions. This gets all the details of the batsmen balls faced,4s,6s,strikerate, runs, venue etc. This function is then used for analyses of batsmen. This function calls teamBattingPerfDetails()
Usage
getTeamBattingDetails(team,dir=".",save=FALSE,odir=".")
Arguments
team |
The team for which batting details is required |
dir |
The source directory |
save |
Whether the data frame needs to be saved as RData or not. It is recommended to set save=TRUE as the data can be used for a lot of analyses of batsmen |
odir |
The output directory to store saved files |
Value
battingDetails The dataframe with the batting details
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBowlingDetails
Examples
## Not run:
a <- getTeamBattingDetails("India",dir="../data", save=TRUE)
## End(Not run)
Get the team bowling details
Description
This function gets the bowling details of a team in all matchs against all oppositions. This gets all the details of the bowlers for e.g deliveries, maidens, runs, wickets, venue, date, winner ec
Usage
getTeamBowlingDetails(team,dir=".",save=FALSE, odir=".")
Arguments
team |
The team for which detailed bowling info is required |
dir |
The source directory of RData files obtained with convertAllYaml2RDataframes() |
save |
Whether the data frame needs to be saved as RData or not. It is recommended to set save=TRUE as the data can be used for a lot of analyses of batsmen |
odir |
The output directory |
Value
bowlingDetails The dataframe with the bowling details
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
a <- getTeamBowlingDetails("India",dir="../data",save=TRUE,odir=".")
## End(Not run)
Gets the WBB batting details
Description
This function creates a single datframe of all WBB batsmen
Usage
getWBBBattingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBowlingDetails
Gets the WBB bowling details
Description
This function creates a single datframe of all WBB bowling
Usage
getWBBBowlingDetails(dir='.',odir=".")
Arguments
dir |
The input directory |
odir |
The output directory |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getIPLBattingDetails
getIPLBowlingDetails
getNTBBattingDetails
getNTBBattingDetails
globals.R
Description
quiets concerns of R CMD check re: the .'s that appear in pipelines
Gets min,max date and min and max matches from dataframe
Description
This function gets min,max date and min and max matches from dataframe
Usage
helper(teamNames,dir=".",type="IPL")
Arguments
teamNames |
The team names |
dir |
The output directory |
type |
T20 format |
Value
minDate,maxDate, minMatches, maxMatches
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Batsmen
rankT20Bowlers
Gets min,max date and min and max matches from dataframe from the year
Description
This function gets min,max date and min and max matches from dataframe
Usage
helper1(teamNames,dateRange, dir=".",type="IPL")
Arguments
teamNames |
The team names |
dateRange |
Date interval to consider |
dir |
The input directory |
type |
T20 format |
Value
minMatches, maxMatches
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Batsmen
rankT20Bowlers
Gets min,max date and min and max matches from dataframe
Description
This function gets min,max date and min and max matches from dataframe
Usage
helper2(teamNames,dir=".",type="IPL")
Arguments
teamNames |
The team names |
dir |
The output directory |
type |
T20 format |
Value
minDate,maxDate, minMatches, maxMatches
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Batsmen
rankT20Bowlers
Gets min,max date and min and max matches from dataframe for the year
Description
This function gets min,max date and min and max matches from dataframe
Usage
helper3(teamNames,dateRange, dir=".",type="IPL")
Arguments
teamNames |
The team names |
dateRange |
Date interval to consider |
dir |
The input directory |
type |
T20 format |
Value
minMatches, maxMatches
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Batsmen
rankT20Bowlers
Plot the match worm graph
Description
This function plots the match worm graph between 2 teams in a match
Usage
matchWormGraph(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
matchWormGraph(a,'England',"Pakistan")
## End(Not run)
Plot the match worm wicket graph
Description
This function plots the match worm wicket graph between 2 teams in a match
Usage
matchWormWicketGraph(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
matchWormWicketGraph(a,'England',"Pakistan")
## End(Not run)
Plot the Runs vs SR in death overs of Intl. T20 batsmen
Description
Runs vs SR in middle death of Intl. T20 batsmen
Usage
overallRunsSRDeathOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Value
The ranked T20 batsmen
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallRunsSRDeathOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
## End(Not run)
Plot the Runs vs SR in middle overs of Intl. T20 batsmen
Description
Runs vs SR in middle overs of Intl. T20 batsmen
Usage
overallRunsSRMiddleOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Value
The ranked T20 batsmen
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallRunsSRMiddleOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
## End(Not run)
Plot the Runs vs SR in power play of T20 batsmen
Description
Runs vs SR in power play of T20 batsmen
Usage
overallRunsSRPPowerplayPlotT20(dir=".", dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallRunsSRPPowerplayPlotT20(dir=".", dateRange,type="IPL",plot=1)
## End(Not run)
Plot the Runs vs SR of Intl. T20 batsmen
Description
This function creates a single datframe of all T20 batsmen and then ranks them
Usage
overallRunsSRPlotT20(dir=".",minMatches, dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
minMatches |
Minimum matches played |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallRunsSRPlotT20(dir=".",minMatches, dateRange,type="IPL",plot=1)
## End(Not run)
Plot the Wickets vs ER in death overs of Intl. T20 batsmen
Description
Wickets vs ER in death overs of Intl. T20 batsmen
Usage
overallWicketsERDeathOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallWicketsERDeathOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
## End(Not run)
Plot the Wickets vs ER in middle overs of Intl. T20 batsmen
Description
Wickets vs ER in middle overs of Intl. T20 batsmen
Usage
overallWicketsERMiddleOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallWicketsERMiddleOversPlotT20(dir=".", dateRange,type="IPL",plot=1)
## End(Not run)
Ranks the T20 bowlers
Description
This function plots the overall wickets vs ER in T20 men
Usage
overallWicketsERPlotT20(dir=".",minMatches, dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
minMatches |
Minimum matches played |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Batsmen
rankT20Bowlers
Examples
## Not run:
overallWicketsERPlotT20(dir=".",minMatches, dateRange,type="IPL",plot=1)
## End(Not run)
Plot the Wickets vs ER in power play of Intl. T20 batsmen
Description
Wickets vs ER in power play of Intl. T20 batsmen
Usage
overallWicketsERPowerPlayPlotT20(dir=".", dateRange,type="IPL",plot=1)
Arguments
dir |
The input directory |
dateRange |
Date interval to consider |
type |
T20 league |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
overallWicketsERPowerPlayPlotT20(dir=".", dateRange,type="IPL",plot=1)
## End(Not run)
Parse yaml file and convert to dataframe
Description
This function parses the yaml file and converts it into a data frame. This is an internal function and is used by convertAllYaml2RDataframes() & convertYaml2RDataframe()
Usage
parseYamlOver(match,s,ateam,delivery,meta)
Arguments
match |
The dataframe of the match |
s |
The string with the delivery |
ateam |
The team |
delivery |
The delivery of the over |
meta |
The meta information of the match |
Value
overs The dataframe of overs
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Parse the yaml over
## End(Not run)
Plot wins for each team
Description
This function computes and plots number of wins for each team in all their encounters. The plot includes the number of wins byteam1 each team and the matches with no result
Usage
plotWinLossBetweenTeams(team1,team2,dir=".",dateRange, plot=1)
Arguments
team1 |
The 1st team |
team2 |
The 2nd team |
dir |
The source directory of teh RData files |
dateRange |
Date Range |
plot |
plot=1 (static),plot=2(interactive) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
Examples
## Not run:
plotWinLossBetweenTeams(team1="India",team2="Australia",dir=pathToFile)
batsmanDismissals(kohli,"Kohli")
## End(Not run)
Plot wins for each team
Description
This function computes and plots number of wins for a team against all other teams. The plot includes the number of wins by team each team and the matches with no result
Usage
plotWinLossTeamVsAllTeams(team1,dir=".",dateRange, plot=1)
Arguments
team1 |
The 1st team |
dir |
The source directory of the RData files |
dateRange |
Date Range |
plot |
plot=1 (static), plot=2(interactive) |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanFoursSixes
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
Examples
## Not run:
plotWinLossBetweenTeams(team1="India",team2="Australia",dir=pathToFile)
batsmanDismissals(kohli,"Kohli")
## End(Not run)
Ranks the ODI batsmen
Description
This function creates a single datframe of all ODI batsmen and then ranks them
Usage
rankODIBatsmen(dir='.',odir=".",minMatches=50)
Arguments
dir |
The input directory |
odir |
The output directory |
minMatches |
Minimum matches |
Value
The ranked ODI batsmen
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankT20Batsmen
rankT20Bowlers
Examples
## Not run:
odiBatsmanRank <- rankODIBatsmen()
## End(Not run)
Ranks the ODI bowlers
Description
This function creates a single datframe of all ODI bowlers and then ranks them
Usage
rankODIBowlers(dir=".",odir=".",minMatches=20)
Arguments
dir |
The input directory |
odir |
The output directory |
minMatches |
Minimum matches |
Value
The ranked ODI bowlers
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
Examples
## Not run:
#
odiBowlersRank <- rankODIBowlers()
## End(Not run)
Ranks the T20 batsmen
Description
This function creates a single datframe of all T20 batsmen and then ranks them
Usage
rankT20Batsmen(dir=".",minMatches, dateRange, runsvsSR,type)
Arguments
dir |
The input directory |
minMatches |
Minimum matches played |
dateRange |
Date interval to consider |
runsvsSR |
Runs or Strike rate |
type |
T20 format |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
rankT20Batsmen(dir=".",minMatches, dateRange, runsvsSR,type)
## End(Not run)
Ranks the T20 bowlers
Description
This function creates a single datframe of all T20 bowlers and then ranks them
Usage
rankT20Bowlers(dir=".",minMatches, dateRange, wicketsVsER,type)
Arguments
dir |
The directory |
minMatches |
Minimum matches played |
dateRange |
Date interval to consider |
wicketsVsER |
Wickets or economy rate |
type |
T20 format |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Batsmen
rankT20Bowlers
Examples
## Not run:
rankT20Bowlers(dir=".",minMatches, dateRange, wicketsVsER,type)
## End(Not run)
Saves matches of all opposition as dataframe
Description
This function saves all matches agaist all opposition as a single dataframe in the current directory
Usage
saveAllMatchesAllOpposition(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetweenTeams(dir=".",odir=".")
## End(Not run)
Saves matches against all BBL teams as dataframe for an BBL team
Description
This function saves all BBL matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionBBLT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves matches against all CPL teams as dataframe for an CPL team
Description
This function saves all CPL matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionCPLT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves matches against all IPL teams as dataframe for an IPL team
Description
This function saves all IPL matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionIPLT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves matches against all NTB teams as dataframe for an NTB team
Description
This function saves all NTB matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionNTBT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves matches against all PSL teams as dataframe for an PSL team
Description
This function saves all PSL matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionPSLT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves matches against all SSM teams as dataframe for an SSM team
Description
This function saves all SSM matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionSSMT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves matches against all WBB teams as dataframe for an WBB team
Description
This function saves all WBB matches agaist all opposition as a single dataframe in the output directory
Usage
saveAllMatchesAllOppositionWBBT20(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesAllOppositionT20
## End(Not run)
Saves all matches between 2 BBL teams as dataframe
Description
This function saves all matches between 2 BBL teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2BBLTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2BBLTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 CPL teams as dataframe
Description
This function saves all matches between 2 CPL teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2CPLTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2IPLTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 IPL teams as dataframe
Description
This function saves all matches between 2 IPL teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2IPLTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2IPLTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 NTB teams as dataframe
Description
This function saves all matches between 2 NTB teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2NTBTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2BBLTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 PSL teams as dataframe
Description
This function saves all matches between 2 PSL teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2PSLTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2BBLTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 SSM teams as dataframe
Description
This function saves all matches between 2 SSM teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2SSMTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2SSMTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 WBB teams as dataframe
Description
This function saves all matches between 2 WBB teams as a single dataframe in the current directory
Usage
saveAllMatchesBetween2WBBTeams(dir=".",odir=".")
Arguments
dir |
Input Directory |
odir |
Output Directory to store saved matches |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetween2BBLTeams(dir=".",odir=".")
## End(Not run)
Saves all matches between 2 teams as dataframe
Description
This function saves all matches between 2 teams as a single dataframe in the current directory
Usage
saveAllMatchesBetweenTeams(dir=".",odir=".")
Arguments
dir |
Input Directory to store saved matches |
odir |
Output Directory to store matches between teams |
Value
None
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
getAllMatchesAllOpposition
getAllMatchesBetweenTeams
Examples
## Not run:
saveAllMatchesBetweenTeams(dir=".",odir=".")
## End(Not run)
Save all T20 batting details
Description
This function creates a single dataframe of all T20 batting details
Usage
saveAllT20BattingDetails(teamNames,dir=".",odir=".",type="IPL",save=TRUE)
Arguments
teamNames |
The team names |
dir |
The output directory |
odir |
The output directory |
type |
T20 format |
save |
To save or not |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
saveAllT20BattingDetails(teamNames,dir=".",odir=".",type="IPL",save=TRUE)
## End(Not run)
Save all T20 batting details
Description
This function creates a single dataframe of all T20 batting details
Usage
saveAllT20BowlingDetails(teamNames,dir=".",odir=".",type="IPL",save=TRUE)
Arguments
teamNames |
The team names |
dir |
The output directory |
odir |
The output directory |
type |
T20 format |
save |
To save or not |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
saveAllT20BowlingDetails(teamNames,dir=".",odir=".",type="IPL",save=TRUE)
## End(Not run)
Overall picture Ranks the T20 batsmen
Description
This function creates a single datframe of all T20 batsmen and then ranks them
Usage
saveAllT20MatchesAsDF(teamNames,dir=".",odir=".",type="IPL",save=TRUE)
Arguments
teamNames |
The team names |
dir |
The output directory |
odir |
The output directory |
type |
T20 format |
save |
To save or not |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
rankODIBowlers
rankODIBatsmen
rankT20Bowlers
Examples
## Not run:
saveAllT20MatchesAsDF(teamNames,dir=".",odir=".",type="IPL",save=TRUE)
## End(Not run)
Used to parse yaml file
Description
This is special processing function. This is an internal function and is used by convertAllYaml2RDataframes() & convertYaml2RDataframe()
Usage
specialProc(dist, overset, ateam,over,str1,meta)
Arguments
dist |
dist |
overset |
overset |
ateam |
The team |
over |
over |
str1 |
str1 |
meta |
The meta information of the match |
Value
over The dataframe of over
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Parse the yaml over
## End(Not run)
Team batting partnership against a opposition all matches
Description
This function computes the performance of batsmen against all bowlers of an oppositions in all matches. This function returns a dataframe
Usage
teamBatsmenPartnershiOppnAllMatches(matches,theTeam,report="summary")
Arguments
matches |
All the matches of the team against the oppositions |
theTeam |
The team for which the the batting partnerships are sought |
report |
If the report="summary" then the list of top batsmen with the highest partnerships is displayed. If report="detailed" then the detailed break up of partnership is returned as a dataframe |
Value
partnerships The data frame of the partnerships
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenMatch
teamBattingScorecardMatch
Examples
## Not run:
# Get all matches for team India against all oppositions
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
# You can also directly load the data
#load("India-Australia-allMatches.RData")
m <-teamBatsmenPartnershiOppnAllMatches(a,'India',report="summary")
m <-teamBatsmenPartnershiOppnAllMatches(a,'Australia',report="detailed")
## End(Not run)
Team batting partnership in all matches all oppositions
Description
This function computes the batting partnership of a team againt all oppositions in all matches This function returns a dataframe which is a summary of the batsman with the highest partnerships or the partnership of an individual batsman
Usage
teamBatsmenPartnershipAllOppnAllMatches(matches,theTeam,report="summary")
Arguments
matches |
All the matches of the team against all oppositions |
theTeam |
The team for which the the batting partnerships are sought |
report |
if the report="summary" then the data frame returned gives a list of the batsmen with the highest partnerships. If report="detailed" then the detailed breakup of the partnership is returned. |
Value
partnerships The data frame with the partnerships
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get all matches for team India against all oppositions
m <-teamBattingScorecardAllOppnAllMatches(matches,theTeam="India")
# Get the summary report
teamBatsmenPartnershipAllOppnAllMatches(matches,theTeam='India')
# Get the detailed report
teamBatsmenPartnershipAllOppnAllMatches(matches,theTeam='India',report="detailed")
## End(Not run)
Plots team batting partnership all matches all oppositions
Description
This function plots the batting partnership of a team againt all oppositions in all matches This function also returns a dataframe with the batting partnerships
Usage
teamBatsmenPartnershipAllOppnAllMatchesPlot(matches,theTeam,main,plot=1)
Arguments
matches |
All the matches of the team against all oppositions |
theTeam |
The team for which the the batting partnerships are sought |
main |
The main team for which the the batting partnerships are sought |
plot |
Whether the partnerships have top be rendered as a plot. Plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or partnerships
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get all matches for team India against all oppositions
d <- teamBatsmanVsBowlersAllOppnAllMatchesRept(matches,"India",rank=1,dispRows=50)
#Plot the partnerships
teamBatsmenVsBowlersAllOppnAllMatchesPlot(d)
#Do not plot but get the dataframe
e <- teamBatsmenVsBowlersAllOppnAllMatchesPlot(d,plot=FALSE)
## End(Not run)
Team batting partnerships of batsmen in a match
Description
This function plots the partnerships of batsmen in a match against an opposition or it can return the data frame
Usage
teamBatsmenPartnershipMatch(match,theTeam,opposition, plot=1)
Arguments
match |
The match between the teams |
theTeam |
The team for which the the batting partnerships are sought |
opposition |
The opposition team |
plot |
Plot=1 (static),plot=2(interactive),plot=3(table) |
Value
df The data frame of the batsmen partnetships
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get athe match between England and Pakistan
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
batsmenPartnershipMatch(a,"Pakistan","England")
batsmenPartnershipMatch(a,"England","Pakistan", plot=TRUE)
m <-batsmenPartnershipMatch(a,"Pakistan","England", plot=FALSE)
## End(Not run)
Plot of team partnership all matches against an opposition
Description
This function plots the batting partnership of a team againt all oppositions in all matches This function also returns a dataframe with the batting partnerships
Usage
teamBatsmenPartnershipOppnAllMatchesChart(matches,main,opposition, plot=1)
Arguments
matches |
All the matches of the team against all oppositions |
main |
The main team for which the the batting partnerships are sought |
opposition |
The opposition team for which the the batting partnerships are sought |
plot |
Plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or partnerships
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get all matches for team India against all oppositions
d <- teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,"India",rank=1,dispRows=50)
#Plot the partnerships
teamBatsmenVsBowlersAllOppnAllMatchesPlot(d)
#Do not plot but get the dataframe
e <- teamBatsmenVsBowlersAllOppnAllMatchesPlot(d,plot=FALSE)
## End(Not run)
Plot of Team batsmen vs bowlers against all opposition all matches
Description
This function computes the performance of batsmen against all bowlers of all oppositions in all matches. The data frame can be either plotted or returned to the user
Usage
teamBatsmenVsBowlersAllOppnAllMatchesPlot(df,plot=1)
Arguments
df |
The dataframe of all the matches of the team against all oppositions |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Value
None or dataframe
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get all matches for team India against all oppositions in all matches
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# Also load directly from file
#load("allMatchesAllOpposition-India.RData")
d <- teamBatsmanVsBowlersAllOppnAllMatchesRept(matches,"India",rank=1,dispRows=50)
teamBatsmenVsBowlersAllOppnAllMatchesPlot(d)
e <- teamBatsmenVsBowlersAllOppnAllMatchesPlot(d,plot=FALSE)
## End(Not run)
Report of team batsmen vs bowlers in all matches all oppositions
Description
This function computes the performance of batsmen against all bowlers of all oppositions in all matches
Usage
teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,theTeam,rank=0,dispRows=50)
Arguments
matches |
All the matches of the team against all oppositions |
theTeam |
The team for which the the batting partnerships are sought |
rank |
if the rank=0 then the data frame returned gives a summary list of the batsmen with the highest runs against bowlers. If rank=N (where N=1,2,3...) then the detailed breakup of the batsman and the runs scored against each bowler is returned |
dispRows |
The number of rows to be returned |
Value
h The data frame of the batsman and the runs against bowlers
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get all matches for team India against all oppositions
m <-teamBattingScorecardAllOppnAllMatches(matches,theTeam="India")
# Get the summary report
teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,"India",rank=0)
#Get detailed report
teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,"India",rank=1,dispRows=50)
teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,"Pakistan",rank=0)
teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,"England",rank=1)
## End(Not run)
Team batsmen against bowlers in a match
Description
This function plots the performance of batsmen versus bowlers in a match or it can return the data frame
Usage
teamBatsmenVsBowlersMatch(match,theTeam,opposition, plot=1)
Arguments
match |
The match between the teams |
theTeam |
The team for which the the batting partnerships are sought |
opposition |
The opposition team |
plot |
lot=1 (static),plot=2(interactive),plot=3(table) |
Value
b The data frame of the batsmen vs bowlers performance
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBattingScorecardMatch
Examples
## Not run:
# Get athe match between England and Pakistan
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
batsmenVsBowlersMatch(a,'Pakistan','England', plot=TRUE)
## End(Not run)
Team batsmen vs bowlers all matches of an opposition
Description
This function computes the performance of batsmen against the bowlers of an oppositions in all matches
Usage
teamBatsmenVsBowlersOppnAllMatches(matches,main,opposition,plot=1,top=5)
Arguments
matches |
All the matches of the team against one specific opposition |
main |
The team for which the the batting partnerships are sought |
opposition |
The opposition team |
plot |
lot=1 (static),plot=2(interactive),plot=3(table) |
top |
The number of players to be plotted or returned as a dataframe. The default is 5 |
Value
None or dataframe
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches
Examples
## Not run:
# Get all matches for team India against an opposition
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
# Get the performance of India batsman against Australia in all matches
teamBatsmenVsBowlersOppnAllMatches(a,"India","Australia")
# Display top 3
teamBatsmanVsBowlersOppnAllMatches(a,"Australia","India",top=3)
# Get top 10 and do not plot
n <- teamBatsmenVsBowlersOppnAllMatches(a,"Australia","India",top=10,plot=FALSE)
## End(Not run)
Gets the team batting details.
Description
This function gets the team batting detals
Usage
teamBattingPerfDetails(match,theTeam,includeInfo=FALSE)
Arguments
match |
The match between the teams |
theTeam |
The team for which the the batting partnerships are sought |
includeInfo |
Whether to include venue,date, winner and result |
Value
df dataframe
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBattingScorecardMatch
Examples
## Not run:
#teamBattingPerfDetails()
## End(Not run)
Team batting scorecard against all oppositions in all matches
Description
This function omputes and returns the batting scorecard of a team in all matches against all oppositions. The data frame has the ball played, 4's,6's and runs scored by batsman
Usage
teamBattingScorecardAllOppnAllMatches(matches,theTeam)
Arguments
matches |
All matches of the team in all matches with all oppositions |
theTeam |
The team for which the the batting partnerships are sought |
Value
details The data frame of the scorecard of the team in all matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Get all matches between India with all oppositions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# This can also be loaded from saved file
# load("allMatchesAllOpposition-India.RData")
# Top batsman is displayed in descending order of runs
teamBattingScorecardAllOppnAllMatches(matches,theTeam="India")
# The best England players scorecard against India is shown
teamBattingScorecardAllOppnAllMatches(matches,theTeam="England")
## End(Not run)
Team batting scorecard of a team in a match
Description
This function computes returns the batting scorecard (runs, fours, sixes, balls played) for the team
Usage
teamBattingScorecardMatch(match,theTeam)
Arguments
match |
The match for which the score card is required e.g. |
theTeam |
Team for which scorecard required |
Value
scorecard A data frame with the batting scorecard
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
Examples
## Not run:
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlingScorecardMatch(a,'England')
## End(Not run)
Team batting scorecard of a team in all matches against an opposition
Description
This function computes returns the batting scorecard (runs, fours, sixes, balls played) for the team in all matches against an opposition
Usage
teamBattingScorecardOppnAllMatches(matches,main,opposition)
Arguments
matches |
the data frame of all matches between a team and an opposition obtained with the call getAllMatchesBetweenteam() |
main |
The main team for which scorecard required |
opposition |
The opposition team |
Value
scorecard The scorecard of all the matches
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
Examples
## Not run:
# Get all matches between India and Australia
matches <- getAllMatchesBetweenTeams("India","Australia",dir="../data",save=TRUE)
# Compute the scorecard of India in matches with australia
teamBattingScorecardOppnAllMatches(matches,main="India",opposition="Australia")
#Get all matches between Australia and India
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
#Compute the batting scorecard of Australia
teamBattingScorecardOppnAllMatches(matches,"Australia","India")
## End(Not run)
Compute team bowlers vs batsmen all opposition all matches
Description
This function computes performance of bowlers of a team against all opposition in all matches
Usage
teamBowlersVsBatsmenAllOppnAllMatchesMain(matches,theTeam,rank=0)
Arguments
matches |
the data frame of all matches between a team and aall opposition and all obtained with the call getAllMatchesAllOpposition() |
theTeam |
The team against which the performance is requires |
rank |
When the rank is 0 then the performance of all the bowlers is displayed. If rank=n (1,2,3 ..) then the performance of that bowler is given |
Value
dataframe The dataframe with all performances
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
# Get all matches between India and all oppostions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# You could also load directly from the saved file
#load("allMatchesAllOpposition-India.RData")
# The call below gives the best bowlers of India
teamBowlersVsBatsmenAllOppnAllMatchesMain(matches,theTeam="India",rank=0)
# The call with rank=1 gives the performance of the 'India' bowler with rank=1
teamBowlersVsBatsmenAllOppnAllMatchesMain(matches,theTeam="India",rank=1)
## End(Not run)
Plot bowlers vs batsmen against all opposition all matches
Description
This function computes performance of bowlers of a team against all opposition in all matches
Usage
teamBowlersVsBatsmenAllOppnAllMatchesPlot(bowlerDF,t1,t2,plot=1)
Arguments
bowlerDF |
The data frame of the bowler whose performance is required |
t1 |
The team against to which the player belong |
t2 |
The opposing team |
plot |
plot=1 (static),plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesRept
Examples
## Not run:
# Get all matches between India and all oppostions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
#Get the details of the bowler with the specified rank as a dataframe
df <- teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam="India",rank=1)
#Plot this
teamBowlersVsBatsmenAllOppnAllMatchesPlot(df,"India","India")
df <- teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam="England",rank=1)
teamBowlersVsBatsmenAllOppnAllMatchesPlot(df,"India","England")
## End(Not run)
report of Team bowlers vs batsmen against all opposition all matches
Description
This function computes performance of bowlers of a team against all opposition in all matches
Usage
teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam,rank=0)
Arguments
matches |
the data frame of all matches between a team and aall opposition and all obtained with the call getAllMatchesAllOpposition() |
theTeam |
The team against which the performance is requires |
rank |
When the rank is 0 then the performance of all the bowlers is displayed. If rank=n (1,2,3 ..) then the performance of that bowler is given |
Value
dataframe The dataframe with all performances
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
# Get all matches between India and all oppostions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# You could also load directly from the saved file
#load("allMatchesAllOpposition-India.RData")
# The call below gives the best bowlers against India
teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam="India",rank=0)
# The call with rank=1 gives the performace of the bowler with rank
teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam="India",rank=1)
# The call below gives the overall performance of India bowlers against South Africa
teamBatsmenVsBowlersAllOppnAllMatchesRept(matches,"South Africa",rank=0)
# The call below gives the performance of best Indias bowlers against Australia
teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,"Australia",rank=1)
## End(Not run)
Team bowlers vs batsmen in a match
Description
This function computes performance of bowlers of a team against an opposition in a match
Usage
teamBowlersVsBatsmenMatch(match,theTeam,opposition, plot=1)
Arguments
match |
The data frame of the match. This can be obtained with the call for e.g a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp") |
theTeam |
The team against which the performance is required |
opposition |
The opposition team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or dataframe If plot=TRUE there is no return. If plot=TRUE then the dataframe is returned
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
# Get the match between England and Pakistan
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlersVsBatsmenMatch(a,"Pakistan","England")
teamBowlersVsBatsmenMatch(a,"England","Pakistan")
m <- teamBowlersVsBatsmenMatch(a,"Pakistan","England")
## End(Not run)
Team bowlers vs batsmen against an opposition in all matches
Description
This function computes performance of bowlers of a team against an opposition in all matches against the opposition
Usage
teamBowlersVsBatsmenOppnAllMatches(matches,main,opposition,plot=1,top=5)
Arguments
matches |
The data frame of all matches between a team the opposition. This dataframe can be obtained with matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data") |
main |
The main team against which the performance is requires |
opposition |
The opposition team against which the performance is require |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
top |
The number of rows to be returned. 5 by default |
Value
dataframe The dataframe with all performances
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
# Get all matches between India and Australia
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
# Plot the performance of top 5 Indian bowlers against Australia
teamBowlersVsBatsmanOppnAllMatches(matches,'India',"Australia",top=5)
# Plot the performance of top 3 Australian bowlers against India
teamBowlersVsBatsmenOppnAllMatches(matches,"Australia","India",top=3)
# Get the top 5 bowlers of Australia. Do not plot but get as a dataframe
teamBowlersVsBatsmenOppnAllMatches(matches,"Australia","India",plot=FALSE)
## End(Not run)
Team bowlers wicket kind against an opposition in all matches
Description
This function computes performance of bowlers of a team and the wicket kind against an opposition in all matches against the opposition
Usage
teamBowlersWicketKindOppnAllMatches(matches,main,opposition,plot=1)
Arguments
matches |
The data frame of all matches between a team the opposition. This dataframe can be obtained with matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data") |
main |
The team for which the performance is required |
opposition |
The opposing team |
plot |
#' @param plot plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or dataframe The return depends on the value of the plot
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
# Get all matches between India and Australia
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
teamBowlersWicketKindOppnAllMatches(matches,"India","Australia",plot=TRUE)
m <- teamBowlersWicketKindOppnAllMatches(matches,"Australia","India",plot=FALSE)
teamBowlersWicketKindOppnAllMatches(matches,"Australia","India",plot=TRUE)
## End(Not run)
Team bowlers wicket runs against an opposition in all matches
Description
This function computes performance of bowlers of a team and the runs conceded against an opposition in all matches against the opposition
Usage
teamBowlersWicketRunsOppnAllMatches(matches,main,opposition,plot=1)
Arguments
matches |
The data frame of all matches between a team the opposition. This dataframe can be obtained with matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data") |
main |
The team for which the performance is required |
opposition |
The opposing team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or dataframe The return depends on the value of the plot
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBowlersWicketsOppnAllMatches
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
# Get all matches between India and Australia
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
teamBowlersWicketRunsOppnAllMatches(matches,"India","Australia")
m <-teamBowlerWicketsRunsOppnAllMatches(matches,"Australia","India",plot=FALSE)
## End(Not run)
Team bowlers wickets against an opposition in all matches
Description
This function computes performance of bowlers of a team and the wickets taken against an opposition in all matches against the opposition
Usage
teamBowlersWicketsOppnAllMatches(matches,main,opposition,plot=1,top=20)
Arguments
matches |
The data frame of all matches between a team the opposition. This dataframe can be obtained with matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data") |
main |
The team for which the performance is required |
opposition |
The opposing team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
top |
The number of top bowlers to be included in the result |
Value
None or dataframe The return depends on the value of the plot
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersWicketRunsOppnAllMatches
Examples
## Not run:
# Get all matches between India and Australia
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
#Display top 20
teamBowlersWicketsOppnAllMatches(matches,"India","Australia")
#Display and plot top 10
teamBowlersWicketsOppnAllMatches(matches,"Australia","India",top=10)
#Do not plot but return as dataframe
teamBowlersWicketsOppnAllMatches(matches,"India","Australia",plot=FALSE)
## End(Not run)
get team bowling performance details
Description
This function computes performance of bowlers of a team a
Usage
teamBowlingPerfDetails(match,theTeam,includeInfo=FALSE)
Arguments
match |
The data frame of all match |
theTeam |
The team for which the performance is required |
includeInfo |
If true details like venie,winner, result etc are included |
Value
dataframe The dataframe of bowling performance
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersWicketRunsOppnAllMatches
Examples
## Not run:
# Get all matches between India and Australia
match <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlingPerf(match,"India",includeInfo=TRUE)
## End(Not run)
team bowling performance all matches against an opposition
Description
This function computes returns the bowling dataframe of bowlers deliveries, maidens, overs, wickets against an opposition in all matches
Usage
teamBowlingPerfOppnAllMatches(matches,main,opposition)
Arguments
matches |
The matches of the team against an opposition. |
main |
Team for which bowling performance is required |
opposition |
The opposition Team |
Value
l A data frame with the bowling performance
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersWicketsOppnAllMatches
teamBowlersWicketRunsOppnAllMatches
teamBowlersWicketKindOppnAllMatches
Examples
## Not run:
#Get all matches between India and Autralia
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")
# Or load directly from saved file
# load("India-Australia-allMatches.RData")
teamBowlingPerfOppnAllMatches(matches,"India","Australia")
teamBowlingPerfOppnAllMatches(matches,main="Australia",opposition="India")
## End(Not run)
Team bowling scorecard all opposition all matches
Description
This function computes returns the bowling dataframe of bowlers deliveries, maidens, overs, wickets against all oppositions in all matches
Usage
teamBowlingScorecardAllOppnAllMatches(matches,theTeam)
Arguments
matches |
The matches of the team against all oppositions and all matches |
theTeam |
Team for which bowling performance is required |
Value
l A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
#Get all matches between India and other opposition
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# Or load directly from saved file
# load("allMatchesAllOpposition-India.RData")
# Top opposition bowlers performances against India
teamBowlingScorecardAllOppnAllMatches(matches,"India")
#Top Indian bowlers against respective opposition
teamBowlingScorecardAllOppnAllMatches(matches,'Australia')
teamBowlingScorecardAllOppnAllMatches(matches,'South Africa')
teamBowlingScorecardAllOppnAllMatches(matches,'England')
## End(Not run)
Team bowling scorecard all opposition all matches Main
Description
This function computes returns the bowling dataframe of best bowlers deliveries, maidens, overs, wickets against all oppositions in all matches
Usage
teamBowlingScorecardAllOppnAllMatchesMain(matches,theTeam)
Arguments
matches |
The matches of the team against all oppositions and all matches |
theTeam |
Team for which bowling performance is required |
Value
l A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlingScorecardAllOppnAllMatches
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
#Get all matches between India and other opposition
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# Or load directly from saved file
# load("allMatchesAllOpposition-India.RData")
# Top opposition bowlers of India
teamBowlingScorecardAllOppnAllMatchesMain(matches,"India")
## End(Not run)
Compute and return the bowling scorecard of a team in a match
Description
This function computes and returns the bowling scorecard of a team in a match
Usage
teamBowlingScorecardMatch(match,theTeam)
Arguments
match |
The match between the teams |
theTeam |
Team for which bowling performance is required |
Value
l A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlingWicketMatch
teamBowlersVsBatsmenMatch
teamBattingScorecardMatch
Examples
## Not run:
#Get all matches between India and other opposition
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlingScorecardMatch(a,'England')
## End(Not run)
team bowling wicket kind against all opposition all matches
Description
This function computes returns kind of wickets (caught, bowled etc) of bowlers in all matches against all oppositions. The user can chose to plot or return a data frame
Usage
teamBowlingWicketKindAllOppnAllMatches(matches,t1,t2="All",plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
t2 |
t2=All gives the performance of the team against all opponents. Giving a opposing team (Australia, India ) will give the performance against this team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or data fame A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
#Get all matches between India and other opposition
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# Or load directly from saved file
# load("allMatchesAllOpposition-India.RData")
teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="All")
m <-teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="All",plot=FALSE)
teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="Bangladesh")
teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="South Africa")
## End(Not run)
Compute and plot the wicket kinds by bowlers in match
Description
This function computes returns kind of wickets (caught, bowled etc) of bowlers in a match between 2 teams
Usage
teamBowlingWicketKindMatch(match,theTeam,opposition,plot=1)
Arguments
match |
The match between the teams |
theTeam |
Team for which bowling performance is required |
opposition |
The opposition team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or data fame A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlingWicketMatch
teamBowlingWicketRunsMatch
teamBowlersVsBatsmenMatch
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlingWicketKindMatch(a,"England","Pakistan",plot=FALSE)
teamBowlingWicketKindMatch(a,"Pakistan","England")
## End(Not run)
Compute and plot wickets by bowlers in match
Description
This function computes returns the wickets taken bowlers in a match between 2 teams
Usage
teamBowlingWicketMatch(match,theTeam,opposition, plot=1)
Arguments
match |
The match between the teams |
theTeam |
Team for which bowling performance is required |
opposition |
The opposition team |
plot |
plot=1 (static),plot=2(interactive), plot=3 (table) |
Value
None or data fame A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlingWicketMatch
teamBowlingWicketRunsMatch
teamBowlersVsBatsmenMatch
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlingWicketMatch(a,"England","Pakistan",plot=FALSE)
teamBowlingWicketMatch(a,"Pakistan","England")
## End(Not run)
Team bowling wicket runs all matches against all oppositions
Description
This function computes the number of wickets and runs conceded by bowlers in all matches against all oppositions. The user can chose to plot or return a data frame
Usage
teamBowlingWicketRunsAllOppnAllMatches(matches,t1,t2="All",plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
t2 |
t2=All gives the performance of the team against all opponents. Giving a opposing team (Australia, India ) will give the performance against this team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or data fame A data frame with the bowling performance in alll matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
#Get all matches between India and other opposition
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# Or load directly from saved file
# load("allMatchesAllOpposition-India.RData")
teamBowlingWicketRunsAllOppnAllMatches(matches,t1="India",t2="All",plot=TRUE)
m <-teamBowlingWicketRunsAllOppnAllMatches(matches,t1="India",t2="All",plot=FALSE)
## End(Not run)
Team bowling wickets runs conceded in match
Description
This function computes returns the wickets taken and runs conceded bowlers in a match between 2 teams. The user can choose to plot or return a dataframe
Usage
teamBowlingWicketRunsMatch(match,theTeam,opposition,plot=1)
Arguments
match |
The match between the teams |
theTeam |
Team for which bowling performance is required |
opposition |
The opposition team |
plot |
plot=1 (static),plot=2(interactive),plot=3(table) |
Value
None or data fame A data frame with the bowling performance in all matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlingWicketMatch
teamBowlingWicketRunsMatch
teamBowlersVsBatsmenMatch
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
teamBowlingWicketRunsMatch(a,"England","Pakistan",plot=FALSE)
teamBowlingWicketRunsMatch(a,"Pakistan","England")
## End(Not run)
Compute the ER in powerplay, middle and death overs
Description
This function plots the runs in in powerplay, middle and death overs
Usage
teamERAcrossOvers(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamERAcrossOvers(match,'England',"Pakistan")
## End(Not run)
Compute the ER by team against all team in powerplay, middle and death overs in all matches
Description
This function plots the ER by team against all team in in powerplay, middle and death overs
Usage
teamERAcrossOversAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamERAcrossOversAllOppnAllMatches(matches,'England',"Pakistan")
## End(Not run)
Compute the ER by team against team in powerplay, middle and death overs in all matches
Description
This function plots the ER by team against team in in powerplay, middle and death overs
Usage
teamERAcrossOversOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamERAcrossOversOppnAllMatches(matches,'England',"Pakistan")
## End(Not run)
Team batting plots runs vs SR in death overs for team against all oppositions in all matches
Description
This function computes and plots runs vs SR in death overs of a team in all matches against all oppositions.
Usage
teamRunSRDeathOversPlotAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
t1 |
The team for which the the batting partnerships are sought |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunSRDeathOversPlotAllOppnAllMatches(matches,t1,plot=1)
## End(Not run)
Team batting plots runs vs SR in death overs for team in match
Description
This function computes and plots runs vs SR in death overs of a team in match against opposition.
Usage
teamRunSRDeathOversPlotMatch(match,t1, t2, plot=1)
Arguments
match |
Match |
t1 |
The team |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunSRDeathOversPlotMatch(match,t1="India",t2="England")
## End(Not run)
Team batting plots runs vs SR in death overs for team against opposition in all matches
Description
This function computes and plots runs vs SR in middle overs of a team in all matches against opposition.
Usage
teamRunSRDeathOversPlotOppnAllMatches(matches,t1, t2, plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
t1 |
The team |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunSRDeathOversPlotOppnAllMatches(matches,t1="India",t2="England")
## End(Not run)
Compute the runs in powerplay, middle and death overs
Description
This function plots the runs in in powerplay, middle and death overs
Usage
teamRunsAcrossOvers(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamRunsAcrossOvers(match,'England',"Pakistan")
## End(Not run)
Compute the runs by team against all team in powerplay, middle and death overs
Description
This function plots the runs by team against all teams in in powerplay, middle and death overs
Usage
teamRunsAcrossOversAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The team for which the runs is required |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamRunsAcrossOversAllOppnAllMatches(matches,'England')
## End(Not run)
Compute the runs by team against team in powerplay, middle and death overs
Description
This function plots the runs by team against team in in powerplay, middle and death overs
Usage
teamRunsAcrossOversOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamRunsAcrossOversOppnAllMatches(matches,'England',"Pakistan")
## End(Not run)
Team batting plots runs vs SR in middle overs for team against all oppositions in all matches
Description
This function computes and plots runs vs SR in middle overs of a team in all matches against all oppositions.
Usage
teamRunsSRMiddleOversPlotAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
t1 |
The team for which the the batting partnerships are sought |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRMiddleOversPlotAllOppnAllMatches(matches,t1,plot=1)
## End(Not run)
Team batting plots runs vs SR in middle overs for team in match
Description
This function computes and plots runs vs SR in middle overs of a team in match against opposition.
Usage
teamRunsSRPMiddleOversPlotMatch(match,t1, t2, plot=1)
Arguments
match |
Match |
t1 |
The team |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPMiddleOversPlotMatch(match,t1="India",t2="England")
## End(Not run)
Team batting plots runs vs SR in middle overs for team against opposition in all matches
Description
This function computes and plots runs vs SR in middle overs of a team in all matches against opposition.
Usage
teamRunsSRPMiddleOversPlotOppnAllMatches(matches,t1, t2, plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
t1 |
The team |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPMiddleOversPlotOppnAllMatches(matches,t1="India",t2="England")
## End(Not run)
Team batting plots runs vs SR for team against all oppositions in all matches
Description
This function computes and plots runs vs SR of a team in all matches against all oppositions.
Usage
teamRunsSRPlotAllOppnAllMatches(matches,theTeam,plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
theTeam |
The team for which the the batting partnerships are sought |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
details The data frame of the scorecard of the team in all matches against all oppositions
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Get all matches between India with all oppositions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
# This can also be loaded from saved file
# load("allMatchesAllOpposition-India.RData")
# Top batsman is displayed in descending order of runs
teamRunsSRPlotAllOppnAllMatches(matches,theTeam="India")
# The best England players scorecard against India is shown
teamRunsSRPlotAllOppnAllMatches(matches,theTeam="England",plot=1)
## End(Not run)
Team Runs vs SR in match
Description
This function computes and plots the Runs vs SR of a team in matches
Usage
teamRunsSRPlotMatch(match,theTeam, opposition, plot=1)
Arguments
match |
All matches of the team in all matches with all oppositions |
theTeam |
The team for which the the batting partnerships are sought |
opposition |
The opposition team |
plot |
plot=1 (static),plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPlotMatch(matches,theTeam="India",opposition="England")
## End(Not run)
Team batting Runs vs SR against oppositions in all matches
Description
This function computes and plots the Runs vs SR of a team in all matches against an oppositions.
Usage
teamRunsSRPlotOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
All matches of the team in all matches with opposition |
t1 |
The team t |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPlotOppnAllMatches(matches,theTeam="India")
# The best England players scorecard against India is shown
teamRunsSRPlotOppnAllMatches(matches,theTeam="England")
## End(Not run)
Team batting plots runs vs SR in powerplay for team against all oppositions in all matches
Description
This function computes and plots runs vs SR in power play of a team in all matches against all oppositions.
Usage
teamRunsSRPowerPlayPlotAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
t1 |
The team for which the the batting partnerships are sought |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPowerPlayPlotAllOppnAllMatches(matches,t1,plot=1)
## End(Not run)
Team batting plots runs vs SR in powerplay for team in match
Description
This function computes and plots runs vs SR in power play of a team in match against opposition.
Usage
teamRunsSRPowerPlayPlotMatch(match,t1, t2, plot=1)
Arguments
match |
Match |
t1 |
The team |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPowerPlayPlotMatch(match,t1="India",t2="England")
## End(Not run)
Team batting plots runs vs SR in powerplay for team against opposition in all matches
Description
This function computes and plots runs vs SR in power play of a team in all matches against opposition.
Usage
teamRunsSRPowerPlayPlotOppnAllMatches(matches,t1, t2, plot=1)
Arguments
matches |
All matches of the team in all matches with all oppositions |
t1 |
The team |
t2 |
The opposition team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
Examples
## Not run:
# Top batsman is displayed in descending order of runs
teamRunsSRPowerPlayPlotOppnAllMatches(matches,t1="India")
## End(Not run)
Compute the Strike Rate in powerplay, middle and death overs
Description
This function plots strike rate scored in powerplay, middle and death overs
Usage
teamSRAcrossOvers(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamSRAcrossOvers(match,'England',"Pakistan")
## End(Not run)
Compute the strike rate by team against all team in powerplay, middle and death overs in all matches
Description
This function plots the SR by team against all team in in powerplay, middle and death overs
Usage
teamSRAcrossOversAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The team of the matches |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamSRAcrossOversAllOppnAllMatches(matches,"Pakistan")
## End(Not run)
Compute the strike rate by team against team in powerplay, middle and death overs in all matches
Description
This function plots the SR by team against team in in powerplay, middle and death overs
Usage
teamSRAcrossOversOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamSRAcrossOversOppnAllMatches(matches,'England',"Pakistan")
## End(Not run)
Team wickets vs ER in death overs against opposition all matches
Description
This function computes wickets vs ER in death overs against oppositions in all matches
Usage
teamWicketERDeathOversPlotOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
t2 |
Opposition Team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketERDeathOversPlotOppnAllMatches(matches,t1,t2,plot=1)
## End(Not run)
Team wickets vs ER in middle overs against all opposition all matches
Description
This function computes wickets vs ER in middle overs against all oppositions in all matches
Usage
teamWicketERMiddleOversPlotAllOppnAllMatches(matches,t1, plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketERMiddleOversPlotAllOppnAllMatches(matches, t1, plot=1)
## End(Not run)
Team wickets vs ER in middle overs against a pposition all matches
Description
This function computes wickets vs ER in middle overs against all oppositions in all matches
Usage
teamWicketERMiddleOversPlotOppnAllMatches(matches,t1, t2, plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
t2 |
Opposition Team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketERMiddleOversPlotOppnAllMatches(matches,t1,t2,plot=1)
## End(Not run)
Team wickets vs ER in powewrplay against opposition all matches
Description
This function computes wickets vs ER in powewrplay against oppositions in all matches
Usage
teamWicketERPowerPlayPlotOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
t2 |
Opposition Team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketERPowerPlayPlotOppnAllMatches(matches,t1,t2,plot=1)
## End(Not run)
Compute the wickets in powerplay, middle and death overs
Description
This function plots wickets scored in powerplay, middle and death overs
Usage
teamWicketsAcrossOvers(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamWicketsAcrossOvers(match,'England',"Pakistan")
## End(Not run)
Compute the wickets by team against all team in powerplay, middle and death overs in all matches
Description
This function plots the wickets by team against all team in in powerplay, middle and death overs
Usage
teamWicketsAcrossOversAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamWicketsAcrossOversAllOppnAllMatches(matches,t1,plot=1)
## End(Not run)
Compute the wickets by team against team in powerplay, middle and death overs in all matches
Description
This function plots the wickets by team against team in in powerplay, middle and death overs
Usage
teamWicketsAcrossOversOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
teamWicketsAcrossOversOppnAllMatches.R(matches,'England',"Pakistan")
## End(Not run)
Team wickets vs ER in death overs against all opposition all matches
Description
This function computes wickets vs ER in death overs against all oppositions in all matches
Usage
teamWicketsERDeathOversPlotAllOppnAllMatches(matches,t1, plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERDeathOversPlotAllOppnAllMatches(matches, t1, plot=1)
## End(Not run)
Team wickets vs ER in death overs against opposition in match
Description
This function computes wickets vs ER in death overs against oppositions in match
Usage
teamWicketsERDeathOversPlotMatch(match,t1, t2, plot=1)
Arguments
match |
The match of the team against opposition |
t1 |
Team for which bowling performance is required |
t2 |
Opposition Team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERDeathOversPlotMatch(match,t1,t2,plot=1)
## End(Not run)
Team wickets vs ER in middle overs against opposition in match
Description
This function computes wickets vs ER in middle overs against oppositions in all match
Usage
teamWicketsERMiddleOversPlotMatch(match,t1, t2, plot=1)
Arguments
match |
The match of the team against opposition |
t1 |
Team for which bowling performance is required |
t2 |
Opposition Team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERMiddleOversPlotMatch(match, t1,t2, plot=1)
## End(Not run)
Team wickets vs ER against all opposition all matches
Description
This function computes wickets vs ER against all oppositions in all matches
Usage
teamWicketsERPlotAllOppnAllMatches(matches,theTeam, plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
theTeam |
Team for which bowling performance is required |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
wicketsERAllOppnAllMatches
## End(Not run)
Team wickets vs ER against in match
Description
This function computes wickets vs ER in match
Usage
teamWicketsERPlotMatch(match,t1,t2,plot=1)
Arguments
match |
The match of the team against opposition |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERPlotMatch(match,t1,t2,plot=1)
## End(Not run)
Team wickets vs ER against all opposition all matches
Description
This function computes wickets vs ER against all oppositions in all matches
Usage
teamWicketsERPlotOppnAllMatches(matches,t1,t2,plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERPlotOppnAllMatches(matches,t1,t2,plot=1)
## End(Not run)
Team wickets vs ER in powewrplay against all opposition all matches
Description
This function computes wickets vs ER in powewrplay against all oppositions in all matches
Usage
teamWicketsERPowerPlayPlotAllOppnAllMatches(matches,t1, plot=1)
Arguments
matches |
The matches of the team against all oppositions and all matches |
t1 |
Team for which bowling performance is required |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERPowerPlayPlotAllOppnAllMatches(matches, t1, plot=1)
## End(Not run)
Team wickets vs ER in powewrplay against opposition in match
Description
This function computes wickets vs ER in powewrplay against oppositions in match
Usage
teamWicketsERPowerPlayPlotMatch(match,t1,t2, plot=1)
Arguments
match |
The match of the team against opposition |
t1 |
Team for which bowling performance is required |
t2 |
Opposition Team |
plot |
Plot=1 (static), Plot=2(interactive) |
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot
Examples
## Not run:
teamWicketsERPowerPlayPlotMatch(match,t1,t2,plot=1)
## End(Not run)
Compute the best ER by bowlers against all team in powerplay, middle and death overs
Description
This function computes the best ER by bowlers against akk team in in powerplay, middle and death overs
Usage
topERBowlerAcrossOversAllOppnAllMatches(matches,t1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
topERBowlerAcrossOversAllOppnAllMatches(matches,'England')
## End(Not run)
Compute the best ER by bowlers against team in powerplay, middle and death overs
Description
This function computes the best ER by bowlers against team in in powerplay, middle and death overs
Usage
topERBowlerAcrossOversOppnAllMatches(matches,t1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
topERBowlerAcrossOversOppnAllMatches.R(matches,'England')
## End(Not run)
Compute the most runs scored by batsmen against all team in powerplay, middle and death overs
Description
This function computes the most runs by batsman against all team in in powerplay, middle and death overs
Usage
topRunsBatsmenAcrossOversAllOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
topRunsBatsmenAcrossOversAllOppnAllMatches(matches,'England')
## End(Not run)
Compute the most runs scored by batsmen against team in powerplay, middle and death overs
Description
This function computes the most runs by batsman against team in in powerplay, middle and death overs
Usage
topRunsBatsmenAcrossOversOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
topRunsBatsmenAcrossOversOppnAllMatches(matches,'England')
## End(Not run)
Compute the highest SR by batsmen against all team in powerplay, middle and death overs
Description
This function computes the highest SR by batsmen by batsman against all team in in powerplay, middle and death overs
Usage
topSRBatsmenAcrossOversAllOppnAllMatches(matches,t1)
Arguments
matches |
The dataframe of the matches |
t1 |
The team of the match |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
topSRBatsmenAcrossOversAllOppnAllMatches(matches,'England')
## End(Not run)
Compute the highest SR by batsmen against team in powerplay, middle and death overs
Description
This function computes the highest SR by batsmen by batsman against team in in powerplay, middle and death overs
Usage
topSRBatsmenAcrossOversOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
topSRBatsmenAcrossOversOppnAllMatches(matches,'England')
## End(Not run)
Compute the most wickets by bowlers against all team in powerplay, middle and death overs
Description
This function computes the highest wickets by bowlers against all team in in powerplay, middle and death overs
Usage
topWicketsBowlerAcrossOversAllOppnAllMatches(matches,t1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
topWicketsBowlerAcrossOversAllOppnAllMatches(matches,'England')
## End(Not run)
Compute the best ER by bowlers against team in powerplay, middle and death overs
Description
This function computes the highest wickets by bowlers against team in in powerplay, middle and death overs
Usage
topWicketsBowlerAcrossOversOppnAllMatches(matches,t1,plot=1)
Arguments
matches |
The dataframe of the matches |
t1 |
The 1st team of the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
# Plot tne match worm plot
topWicketsBowlerAcrossOversOppnAllMatches(matches,'England')
## End(Not run)
Plot the win probability using Deep Learning model
Description
This function plots the win probability of the teams in a T20 match
Usage
winProbabilityDL(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
winProbabilityDL(a,'England',"Pakistan")
## End(Not run)
Plot the win probability using GAN model
Description
This function plots the win probability of the teams in a T20 match
Usage
winProbabilityGAN(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
winProbabilityGAN(a,'England',"Pakistan")
## End(Not run)
Plot the win probability using Logistic Regression model
Description
This function plots the win probability of the teams in a T20 match
Usage
winProbabilityLR(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
winProbabilityLR(a,'England',"Pakistan")
## End(Not run)
Plot the win probability using Random Forest model
Description
This function plots the win probability of the teams in a T20 match
Usage
winProbabilityRF(match,t1,t2,plot=1)
Arguments
match |
The dataframe of the match |
t1 |
The 1st team of the match |
t2 |
the 2nd team in the match |
plot |
Plot=1 (static), Plot=2(interactive) |
Value
none
Note
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Author(s)
Tinniam V Ganesh
References
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
See Also
getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails
Examples
## Not run:
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")
# Plot tne match worm plot
winProbabilityRF(a,'England',"Pakistan")
## End(Not run)