Learn R Programming

yorkr (version 0.0.42)

teamBatsmenVsBowlersOppnAllMatches: Team batsmen vs bowlers all matches of an opposition

Description

This function computes the performance of batsmen against the bowlers of an oppositions in all matches

Usage

teamBatsmenVsBowlersOppnAllMatches(matches,main,opposition,plot=1,top=5)

Value

None or dataframe

Arguments

matches

All the matches of the team against one specific opposition

main

The team for which the the batting partnerships are sought

opposition

The opposition team

plot

lot=1 (static),plot=2(interactive),plot=3(table)

top

The number of players to be plotted or returned as a dataframe. The default is 5

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 an opposition
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")

# Get the performance of India batsman against Australia in all matches
teamBatsmenVsBowlersOppnAllMatches(a,"India","Australia")

# Display top 3
teamBatsmanVsBowlersOppnAllMatches(a,"Australia","India",top=3)

# Get top 10 and do not plot
n <- teamBatsmenVsBowlersOppnAllMatches(a,"Australia","India",top=10,plot=FALSE)
}

Run the code above in your browser using DataLab