teamBatsmenVsBowlersOppnAllMatches: Team batsmen vs bowlers all matches of an opposition

View source: R/teamBatsmenVsBowlersOppnAllMatches.R

teamBatsmenVsBowlersOppnAllMatchesR Documentation

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)

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

Value

None or dataframe

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

teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches

Examples

## Not run: 
# 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)

## End(Not run)


tvganesh/yorkr documentation built on May 13, 2023, 12:19 p.m.