getAllMatchesAllOpposition: Get data on all matches against all opposition

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/getAllMatchesAllOpposition.R

Description

This function gets all the matches for a particular team for e.g India, Pakistan, Australia etc against all other oppositions. 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 and for all oppositions. 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

team

The team for which all matches and all opposition has to be obtained e.g. India, Pakistan

dir

The input directory

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

odir

The output directory

Value

match The combined data frame

Note

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

Author(s)

Tinniam V Ganesh

References

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

See Also

bowlerMovingAverage
bowlerWicketPlot
bowlerWicketsVenue
bowlerMeanRunsConceded

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)

yorkr documentation built on July 10, 2021, 5:06 p.m.