getMatchDetails: Get match details of 2 countries

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

View source: R/getMatchDetails.R

Description

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

Usage

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

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

Value

match The dataframe of the match

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

getBatsmanDetails
getBowlerWicketDetails
getTeamBattingDetails
getTeamBowlingDetails

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# 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")

## End(Not run)

yorkr documentation built on Sept. 20, 2021, 5:08 p.m.