Last data update: 2014.03.03

R: Team bowlers vs batsmen against an opposition in all matches
teamBowlersVsBatsmenOppnAllMatchesR Documentation

Team bowlers vs batsmen against an opposition in all matches

Description

This function computes performance of bowlers of a team against an opposition in all matches against the opposition

Usage

teamBowlersVsBatsmenOppnAllMatches(matches,main,opposition,plot=TRUE,top=5)

Arguments

matches

The data frame of all matches between a team the opposition. This dataframe can be obtained with matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")

main

The main team against which the performance is requires

opposition

The opposition team against which the performance is require

plot

If true plot else return dataframe

top

The number of rows to be returned. 5 by default

Value

dataframe The dataframe with all performances

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

teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot

Examples

## Not run: 
# Get all matches between India and Australia
matches <- getAllMatchesBetweenTeams("Australia","India",dir="../data")

#  Plot the performance of top 5 Indian bowlers against Australia
teamBowlersVsBatsmanOppnAllMatches(matches,'India',"Australia",top=5)

# Plot the performance of top 3 Australian bowlers against India
teamBowlersVsBatsmenOppnAllMatches(matches,"Australia","India",top=3)

# Get the top 5 bowlers of Australia. Do not plot but get as a dataframe
teamBowlersVsBatsmenOppnAllMatches(matches,"Australia","India",plot=FALSE)

## End(Not run)

Results