<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/yorkr-ranks-ipl-players-post-2016-season/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://gigadom.wordpress.com/2016/12/13/yorkr-ranks-ipl-players-post-2016-season/"> R – Giga thoughts …</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Here is a short post which ranks IPL batsmen and bowlers post the 2016 IPL season. These are based on match data from <a target="_blank" rel="nofollow" href="http://www.cricsheet.org/">Cricsheet</a>. I had already ranked IPL players in my post <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/04/25/yorkr-ranks-ipl-batsmen-and-bowlers/">yorkr ranks IPL batsmen and bowlers</a>, but that was mid IPL 2016 season. This post will be final ranking post 2016 season</p>
<p>This post has also been published in RPubs <a target="_blank" rel="nofollow" href="http://rpubs.com/tvganesh/rankIPL2016">RankIPLPlayers2016</a>. You can download this as a pdf file at <a target="_blank" rel="nofollow" href="https://drive.google.com/file/d/0Bxz66bp5PxPBcnVBSFNKMllNbm8/view?usp=sharing">RankIPLPlayers2016.pdf</a>.</p>
<p>You can take a look at the code at <a target="_blank" rel="nofollow" href="https://github.com/tvganesh/rankIPL2016">rankIPLPlayers2016</a></p>
<pre><code><span>rm</span><span>(</span><span>list</span><span>=</span><span>ls</span><span>(</span><span>)</span><span>)</span>
<span>library</span><span>(</span><span>yorkr</span><span>)</span>
<span>library</span><span>(</span><span>dplyr</span><span>)</span>
<span>source</span><span>(</span><span>'C:/software/cricket-package/cricsheet/ipl2016/final/R/rankIPLBatsmen.R'</span>, <span>encoding</span> <span>=</span> <span>'UTF-8'</span><span>)</span>
<span>source</span><span>(</span><span>'C:/software/cricket-package/cricsheet/ipl2016/final/R/rankIPLBowlers.R'</span>, <span>encoding</span> <span>=</span> <span>'UTF-8'</span><span>)</span></code></pre>
<div>
<h2>Rank IPL batsmen post 2016</h2>
<p>Chris Gayle, Shaun Marsh &amp; David Warner are top 3 IPL batsmen. Gayle towers over everybody, with an 38.28 Mean Runs, and a Mean Strike Rate of 138.85. Virat Kohli comes in 4th, with 34.52 as his Average Runs per innings, and a Mean Strike Rate of 117.51</p>
<pre><code><span>iplBatsmanRank</span> <span>&lt;-</span> <span>rankIPLBatsmen</span><span>(</span><span>)</span>
<span>as.data.frame</span><span>(</span><span>iplBatsmanRank</span><span>[</span><span>1</span><span>:</span><span>30</span>,<span>]</span><span>)</span></code></pre>
<pre><code>##             batsman matches meanRuns    meanSR
## 1          CH Gayle      92 38.28261 138.85120
## 2          SE Marsh      60 36.40000 118.97783
## 3         DA Warner     104 34.51923 124.88798
## 4           V Kohli     136 31.77941 117.51000
## 5         AM Rahane      89 31.46067 104.62989
## 6    AB de Villiers     109 29.93578 136.48945
## 7      SR Tendulkar      78 29.62821 108.58962
## 8         G Gambhir     133 28.94737 109.61263
## 9         RG Sharma     140 28.68571 117.79057
## 10         SK Raina     143 28.41259 121.55713
## 11        SR Watson      90 28.21111 125.80122
## 12         S Dhawan     110 28.09091 111.97282
## 13         R Dravid      79 27.87342 109.14544
## 14         DR Smith      76 27.55263 120.22329
## 15        JP Duminy      70 27.28571 122.99243
## 16      BB McCullum      94 26.86170 118.55606
## 17        JH Kallis      97 26.83505  95.47866
## 18         V Sehwag     105 26.26667 137.11562
## 19       RV Uthappa     132 26.18182 123.16326
## 20     AC Gilchrist      81 25.77778 122.69074
## 21          M Vijay      99 25.69697 106.02010
## 22    KC Sangakkara      70 25.67143 112.97529
## 23         MS Dhoni     131 25.14504 131.62206
## 24        DA Miller      60 24.76667 133.80983
## 25        AT Rayudu      99 23.35354 121.59313
## 26 DPMD Jayawardene      80 23.05000 114.54712
## 27     Yuvraj Singh     103 22.46602 118.15000
## 28        DJ Hussey      63 22.26984        NA
## 29        YK Pathan     121 22.25620 132.58793
## 30      S Badrinath      66 22.22727 114.97061</code></pre>
</div>
<div>
<h2>Rank IPL bowlers</h2>
<p>The top 3 IPL T20 bowlers are SL Malinga, DJ Bravo and SP Narine</p>
<p>Don’t get hung up on the decimals in the average wickets for the bowlers. All it implies is that if 2 bowlers have average wickets of 1.0 and 1.5, it implies that in 2 matches the 1st bowler will take 2 wickets and the 2nd bowler will take 3 wickets.</p>
<pre><code><span>setwd</span><span>(</span><span>&quot;C:/software/cricket-package/cricsheet/ipl2016/details&quot;</span><span>)</span>
<span>iplBowlersRank</span> <span>&lt;-</span> <span>rankIPLBowlers</span><span>(</span><span>)</span>
<span>as.data.frame</span><span>(</span><span>iplBowlersRank</span><span>[</span><span>1</span><span>:</span><span>30</span>,<span>]</span><span>)</span></code></pre>
<pre><code>##             bowler matches meanWickets   meanER
## 1       SL Malinga      96    1.645833 6.545208
## 2         DJ Bravo      58    1.517241 7.929310
## 3        SP Narine      65    1.492308 6.155077
## 4          B Kumar      45    1.422222 7.355556
## 5        YS Chahal      41    1.414634 8.057073
## 6         M Morkel      37    1.405405 7.626216
## 7        IK Pathan      40    1.400000 7.579250
## 8         RP Singh      42    1.357143 7.966429
## 9         MM Patel      31    1.354839 7.282581
## 10   R Vinay Kumar      63    1.317460 8.342540
## 11  Sandeep Sharma      38    1.315789 7.697368
## 12       MM Sharma      46    1.304348 7.740652
## 13         P Awana      33    1.303030 8.325758
## 14        MM Patel      30    1.300000 7.569667
## 15          Z Khan      41    1.292683 7.735854
## 16         PP Ojha      53    1.245283 7.268679
## 17     JP Faulkner      40    1.225000 8.502250
## 18 Shakib Al Hasan      41    1.170732 7.103659
## 19     DS Kulkarni      32    1.156250 8.372188
## 20        UT Yadav      46    1.152174 8.394783
## 21        A Kumble      41    1.146341 6.567073
## 22       JA Morkel      73    1.136986 8.131370
## 23        SK Warne      53    1.132075 7.277170
## 24        A Mishra      55    1.127273 7.319455
## 25        UT Yadav      33    1.090909 8.853636
## 26        L Balaji      34    1.088235 7.186176
## 27       PP Chawla      35    1.085714 8.162000
## 28        R Ashwin      92    1.065217 6.812391
## 29  M Muralitharan      39    1.051282 6.470256
## 30 Harbhajan Singh     120    1.050000 7.134833</code></pre>
</div>
<div>
<h2>Conclusion:</h2>
<p>The ranking was based on data from <a target="_blank" rel="nofollow" href="http://www.cricsheet.org/">Cricsheet</a>.</p>
<ol>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/04/02/introducing-cricket-package-yorkr-part-1-beaten-by-sheer-pace/">Introducing cricket package yorkr-Part1:Beaten by sheer pace!</a>.</li>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/04/16/yorkr-pads-up-for-the-twenty20s-part-1-analyzing-teams-match-performance/">yorkr pads up for the Twenty20s: Part 1- Analyzing team“s match performance</a>.</li>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/04/19/yorkr-crashes-the-ipl-party-part-1/">yorkr crashes the IPL party !Part 1</a></li>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2015/07/04/introducing-cricketr-a-r-package-to-analyze-performances-of-cricketers/">Introducing cricketr! : An R package to analyze performances of cricketers</a></li>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/02/05/cricket-analytics-with-cricketr-in-paperback-and-kindle-versions/">Cricket analytics with cricketr in paperback and Kindle versions</a></li>
</ol>
</div>
<div></div>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gigadom.wordpress.com/4905/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/gigadom.wordpress.com/4905/" border="0"></a> <img alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" border="0" data-recalc-dims="1"></p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://gigadom.wordpress.com/2016/12/13/yorkr-ranks-ipl-players-post-2016-season/"> R – Giga thoughts …</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/aiAS2Z7qXRs"></a></div>