Get data on all matches between 2 opposing teams

Share:

Description

This function gets all the data on matches between opposing teams for e.g India-Pakistan, Englad-Australia, South Africa- Sri Lanka etc. It constructs a huge dataframe of all these matches. This can be saved by the user which can be used in function in which analyses are done for all matches between these teams. This is done by loading the saved .RData for each match and performing an rbind of the data frames for each match

Usage

1

Arguments

team1

One of the team in consideration e.g (India, Australia, England)

team2

The other team for which matches are needed e.g( India, Sri Lanka, Pakistan)

dir

The directory which has the RData files of matches between teams

save

Default=FALSE. This parameter indicates whether the combined data frame needs to be saved or not. It is recommended to save this large dataframe as the creation of this data frame takes a several seconds depending on the number of matches

Value

matches The combined data frame

Note

Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com

Author(s)

Tinniam V Ganesh

References

http://cricsheet.org/
https://gigadom.wordpress.com/

See Also

bowlerMovingAverage
bowlerWicketPlot
bowlerWicketsVenue
getAllMatchesAllOpposition

Examples

1
2
3
4
5
6
## Not run: 
# Get all matches for team India
getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)
getAllMatchesAllOpposition("Australia",dir="./mysavedata/",save=TRUE)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.