Learn R Programming

yorkr (version 0.0.42)

getMatchDetails: Get match details of 2 countries

Description

This function gets the details of a matc palyed between 2 countries from the saved RData files and returns a dataframe

Usage

getMatchDetails(team1,team2,date,dir=".")

Value

match The dataframe of the match

Arguments

team1

The 1st team in the match

team2

The 2nd team in the matcj

date

The date on which the match was played

dir

The source directory of the RData files with all matches

Author

Tinniam V Ganesh

References

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

See Also

getBatsmanDetails
getBowlerWicketDetails
getTeamBattingDetails
getTeamBowlingDetails

Examples

Run this code
if (FALSE) {
# convertAllYaml2RDataframes() & convertYaml2RDataframe convert yaml files
# to data frame and store as RData
# We have to point to this directory for the call below
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../data")

# Use this to create a classification tree of deliveries to wickets
bowlerWktsPredict(jadeja1,"RA Jadeja")
}

Run the code above in your browser using DataLab