Learn R Programming

yorkr (version 0.0.42)

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

Value

partnerships The data frame with the partnerships

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.

Author

Tinniam V Ganesh

References

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

See Also

teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches

Examples

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

Run the code above in your browser using DataLab