Last chance! 50% off unlimited learning
Sale ends in
This function computes and plots runs vs SR of a team in all matches against all oppositions.
teamRunsSRPlotAllOppnAllMatches(matches,theTeam,plot=1)
details The data frame of the scorecard of the team in all matches against all oppositions
All matches of the team in all matches with all oppositions
The team for which the the batting partnerships are sought
Plot=1 (static), Plot=2(interactive)
Tinniam V Ganesh
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches
if (FALSE) {
# 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)
}
Run the code above in your browser using DataLab