tvganesh / cricketr Goto Github PK
View Code? Open in Web Editor NEWThis package can be used to analyze performances of cricketers based on stats from ESPN Cricinfo
License: Other
This package can be used to analyze performances of cricketers based on stats from ESPN Cricinfo
License: Other
library(cricketr)
library(cricketdata)
murali_id = find_player_id("Muttiah Muralitharan")$ID
murali <- getPlayerData(murali_id,dir=".",file="murali.csv",type="bowling",homeOrAway=c(1,2), result=c(1,2,4))
warne_id = find_player_id("Shane Warne")$ID
warne <- getPlayerData(warne_id,dir=".",file="warne.csv",type="bowling",homeOrAway=c(1,2), result=c(1,2,4))
kumble_id = find_player_id("Anil Kumble")$ID
kumble <- getPlayerData(kumble_id,dir=".",file="kumble.csv",type="bowling",homeOrAway=c(1,2), result=c(1,2,4))
Output:
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
Error in if (n[2] == "BPO") { : missing value where TRUE/FALSE needed
Calls: getPlayerData
Execution halted
Thanks for this package
I'm about to release an alpha version of a shiny dashboard based on it
Would it be possible to return venue and result data as columns in the getPlayerData() function
Hi Ganesh,
I get above error while installing package in R.
Any thought?
library(devtools)
install_github("tvganesh/cricketr")
Downloading GitHub repo tvganesh/cricketr@master
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘stringi’
Thanks,
Yogs
This is a test
First of all , I would like to appreciate your dedication in framing this package!. Hats Off!
Coming to the issues,
I have been trying to analyze Vijay Shankar's ODI dismissals. (http://stats.espncricinfo.com/ci/engine/player/477021.html?class=2;filter=advanced;orderby=start;template=results;type=batting;view=innings). and I came across 2 following issues:
(I have traced the function)
What I mean is that
His stats should read
Not out : 0 %
Run out : 40 %
Caught : 60 %
Refer
as opposed to current metrics displaying
Not out : 44%
Run out : 22%
Caught : 33%
Adding a parameter to the getPlayerData will work it out.
parameter orderbyad=forward in the URL gives you in chronological order and orderbyad=reverse gives in the reverse chronological order.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.