# NOT RUN {
# Only away. Get data only for won and lost innings
kohli <-getPlayerDataTT(253802,dir="../cricketr/data", file="kohli1.csv",
type="batting")
# Get bowling data and store in file for future
ashwin <- getPlayerDataTT(26421,dir="../cricketr/data",file="ashwin1.csv",
type="bowling")
kohli <-getPlayerDataTT(253802,opposition = 2,host=2,dir="../cricketr/data",
file="kohli1.csv",type="batting")
# }
Run the code above in your browser using DataLab