Last data update: 2014.03.03

R: Team batsmen vs bowlers all matches of an opposition
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=TRUE,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

If plot=TRUE then a plot will be displayed else a data frame will be returned

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

http://cricsheet.org/
https://gigadom.wordpress.com/
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)

Results