Learn R Programming

yorkr (version 0.0.42)

teamBatsmenPartnershiOppnAllMatches: 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")

Value

partnerships The data frame of the partnerships

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

Author

Tinniam V Ganesh

References

https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/

See Also

teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenMatch
teamBattingScorecardMatch

Examples

Run this code
if (FALSE) {
# 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")
}

Run the code above in your browser using DataLab