Learn R Programming

yorkr (version 0.0.42)

teamBowlersVsBatsmenAllOppnAllMatchesMain: Compute team bowlers vs batsmen all opposition all matches

Description

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

Usage

teamBowlersVsBatsmenAllOppnAllMatchesMain(matches,theTeam,rank=0)

Value

dataframe The dataframe with all performances

Arguments

matches

the data frame of all matches between a team and aall opposition and all obtained with the call getAllMatchesAllOpposition()

theTeam

The team against which the performance is requires

rank

When the rank is 0 then the performance of all the bowlers is displayed. If rank=n (1,2,3 ..) then the performance of that bowler is given

Author

Tinniam V Ganesh

References

https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/

See Also

teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesRept
teamBowlersVsBatsmenAllOppnAllMatchesPlot

Examples

Run this code
if (FALSE) {
# Get all matches between India and all oppostions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)

# You could also load directly from the saved file
#load("allMatchesAllOpposition-India.RData")
# The call below gives the best bowlers of India
teamBowlersVsBatsmenAllOppnAllMatchesMain(matches,theTeam="India",rank=0)

# The call with rank=1 gives the performance of the 'India' bowler with rank=1
 teamBowlersVsBatsmenAllOppnAllMatchesMain(matches,theTeam="India",rank=1)
}

Run the code above in your browser using DataLab