teamBattingScorecardOppnAllMatches {yorkr} | R Documentation |
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)
[Package yorkr version 0.0.42 Index]