Learn R Programming

yorkr (version 0.0.42)

getTeamBattingDetails: Get team batting details

Description

This function gets the batting details of a team in all matchs against all oppositions. This gets all the details of the batsmen balls faced,4s,6s,strikerate, runs, venue etc. This function is then used for analyses of batsmen. This function calls teamBattingPerfDetails()

Usage

getTeamBattingDetails(team,dir=".",save=FALSE,odir=".")

Value

battingDetails The dataframe with the batting details

Arguments

team

The team for which batting details is required

dir

The source directory

save

Whether the data frame needs to be saved as RData or not. It is recommended to set save=TRUE as the data can be used for a lot of analyses of batsmen

odir

The output directory to store saved files

Author

Tinniam V Ganesh

References

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

See Also

getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBowlingDetails

Examples

Run this code
if (FALSE) {
a <- getTeamBattingDetails("India",dir="../data", save=TRUE)
}

Run the code above in your browser using DataLab