Learn R Programming

yorkr (version 0.0.42)

teamBowlingWicketKindAllOppnAllMatches: team bowling wicket kind against all opposition all matches

Description

This function computes returns kind of wickets (caught, bowled etc) of bowlers in all matches against all oppositions. The user can chose to plot or return a data frame

Usage

teamBowlingWicketKindAllOppnAllMatches(matches,t1,t2="All",plot=1)

Value

None or data fame A data frame with the bowling performance in alll matches against all oppositions

Arguments

matches

The matches of the team against all oppositions and all matches

t1

Team for which bowling performance is required

t2

t2=All gives the performance of the team against all opponents. Giving a opposing team (Australia, India ) will give the performance against this team

plot

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

Author

Tinniam V Ganesh

References

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

See Also

teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesPlot

Examples

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

# Or load directly from saved file
# load("allMatchesAllOpposition-India.RData")

teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="All")
m <-teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="All",plot=FALSE)

teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="Bangladesh")
teamBowlingWicketKindAllOppnAllMatches(matches,t1="India",t2="South Africa")
}

Run the code above in your browser using DataLab