getMatchDetails: Get match details of 2 countries

View source: R/getMatchDetails.R

getMatchDetailsR Documentation

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=".")

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

## 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 Jan. 7, 2023, 1:16 a.m.