Learn R Programming

yorkr (version 0.0.42)

teamBatsmenPartnershipMatch: 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)

Value

df The data frame of the batsmen partnetships

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)

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 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)
}

Run the code above in your browser using DataLab