Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/getPlayerDataHA.R
This function saves the players data as a CSV file and also returns a data frame. A new column home/away/neutral is added
1 2 | getPlayerDataHA(profileNo,tdir=".",tfile="player001.csv",type="batting",
matchType="Test")
|
profileNo |
The profile number of the player |
tdir |
The name of the directory to save the CSV file |
tfile |
The name of the CSV file |
type |
This parameter should be 'batting' for batsman data and 'bowling' for bowlers |
matchType |
Match type - Test, ODI or T20 |
dataframe
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Tinniam V Ganesh
https://www.espncricinfo.com/ci/content/stats/index.html
https://gigadom.in/
teamWinLossStatusVsOpposition
batsman4s
1 2 3 4 5 6 7 8 9 | ## Not run:
#Get data for Tendulkar
df=getPlayerDataHA(profileno=35320,tfile="tendulkarHA.csv")
#Get the bowling data for Jadeja in ODIs
df=getPlayerDataHA(profileNo=234675,tfile="jadejaODIHA.csv",type="bowling",matchType='ODI')
# Get the data for Kohli in T20s for batting
df=getPlayerDataHA(profileNo=253802,tfile="kohliT20HA.csv",matchType="T20")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.