getTeamDataHomeAway: Get the data for a team in a match type viz.for Test, ODI and...

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

View source: R/getTeamDataHomeAway.R

Description

This function returns team data as a CSV file and/or a dataframe for Test, ODI and T20 with an additional column showing home, away or neutral venue where the match was played

Usage

1
2
getTeamDataHomeAway(dir=".",teamView="bat",matchType="Test",file="team001HA.csv",
save=TRUE,teamName)

Arguments

dir

The directory where the team data CSV file be saved

teamView

Team view can be either 'bat' (batting team) or 'bowl' (bowling team)

matchType

The match type - Test, ODI , T20

file

The name of te file to save to

save

This can be TRUE or FALSE

teamName

Team name is the team namely - Australia, India, England etc

Value

The required data frame

Note

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

Author(s)

Tinniam V Ganesh

References

https://www.espncricinfo.com/ci/content/stats/index.html
https://gigadom.in/

See Also

teamWinLossStatusVsOpposition teamWinLossStatusAtGrounds plotTimelineofWinsLosses

Examples

1
2
3
4
5
6
## Not run: 
#Get the team data for India for Tests

getTeamDataHomeAway(teamName="India",file="india.csv")

## End(Not run)

cricketr documentation built on March 23, 2021, 9:06 a.m.