<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/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/"></div></div><div><a data-url="https://www.r-bloggers.com/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/" data-counturl="https://www.r-bloggers.com/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/" data-count="horizontal" data-text="cricketr sizes up legendary All-rounders of yesteryear" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/"> R – Giga thoughts …</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<h1>Introduction</h1>
<p>This is a post I have been wanting to write for several months, but had to put it off for one reason or another. In this post I use my R package cricketr to analyze the performance of All-rounder greats namely Kapil Dev, Ian Botham, Imran Khan and Richard Hadlee. All these players had talent that was natural and raw. They were good strikers of the ball and extremely lethal with their bowling. The ODI data for these players have been taken from ESPN Cricinfo.</p>
<p>Please be mindful of the <a target="_blank" href="http://www.espncricinfo.com/ci/content/site/company/terms_use.html">ESPN Cricinfo Terms of Use</a></p>
<p>You can also read this post at Rpubs as <a target="_blank" href="http://rpubs.com/tvganesh/cricketr-AR">cricketr-AR</a>. Dowload this report as a PDF file from <a target="_blank" href="https://drive.google.com/file/d/0Bxz66bp5PxPBMldlaE9CY0Zrcmc/view?usp=sharing">cricketr-AR</a></p>
<p><strong>All Rounders</strong></p>
<ol>
<li>Kapil Dev (Ind)</li>
<li>Ian Botham (Eng)</li>
<li>Imran Khan (Pak)</li>
<li>Richard Hadlee (NZ)</li>
</ol>
<p>I have sprinkled the plots with a few of my comments. Feel free to draw your conclusions! The analysis is included below</p>
<pre><code><span>if</span> <span>(</span><span>!</span><span>require</span><span>(</span><span>&quot;cricketr&quot;</span><span>)</span><span>)</span><span>{</span> 
    <span>install.packages</span><span>(</span><span>&quot;cricketr&quot;</span>,<span>)</span> 
<span>}</span> 

<span>library</span><span>(</span><span>cricketr</span><span>)</span></code></pre>
<p>The data for any particular ODI player can be obtained with the getPlayerDataOD() function. To do you will need to go to <a target="_blank" href="http://www.espncricinfo.com/ci/content/player/index.html">ESPN CricInfo Player</a>and type in the name of the player for e.g Kapil Dev, etc. This will bring up a page which have the profile number for the player e.g. for Kapil Dev this would be <a target="_blank" href="http://www.espncricinfo.com/india/content/player/30028.html">http://www.espncricinfo.com/india/content/player/30028.html</a>. Hence, Kapils’s profile is 30028. This can be used to get the data for Kapil Dev’s data as shown below. I have already executed the below 4 commands and I will use the files to run further commands</p>
<pre><code><span>#kapil1 &lt;- getPlayerDataOD(30028,dir=&quot;..&quot;,file=&quot;kapil1.csv&quot;,type=&quot;batting&quot;)</span>
<span>#botham11 &lt;- getPlayerDataOD(9163,dir=&quot;..&quot;,file=&quot;botham1.csv&quot;,type=&quot;batting&quot;)</span>
<span>#imran1 &lt;- getPlayerDataOD(40560,dir=&quot;..&quot;,file=&quot;imran1.csv&quot;,type=&quot;batting&quot;)</span>
<span>#hadlee1 &lt;- getPlayerDataOD(37224,dir=&quot;..&quot;,file=&quot;hadlee1.csv&quot;,type=&quot;batting&quot;)</span></code></pre>
<div>
<h2>Analyses of batting performances of the All Rounders</h2>
<p>The following plots gives the analysis of the 4 ODI batsmen</p>
<ol>
<li>Kapil Dev (Ind) – Innings – 225, Runs = 3783, Average=23.79, Strike Rate= 95.07</li>
<li>Ian Botham (Eng) – Innings – 116, Runs= 2113, Average=23.21, Strike Rate= 79.10</li>
<li>Imran Khan (Pak) – Innings – 175, Runs= 3709, Average=33.41, Strike Rate= 72.65</li>
<li>Richard Hadlee (NZ) – Innings – 115, Runs= 1751, Average=21.61, Strike Rate= 75.50</li>
</ol>
</div>
<div>
<h2>Plot of 4s, 6s and the scoring rate in ODIs</h2>
<p>The 3 charts below give the number of</p>
<ol>
<li>4s vs Runs scored</li>
<li>6s vs Runs scored</li>
<li>Balls faced vs Runs scored</li>
</ol>
<p>A regression line is fitted in each of these plots for each of the ODI batsmen</p>
<p>A. <strong>Kapil Dev</strong><br>
It can be seen that Kapil scores four 4’s when he scores 50. Also after facing 50 deliveries he scores around 43</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>3</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsman4s</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>batsman6s</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>batsmanScoringRateODTT</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4777" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kapil-4s6ssr-1/"><img alt="kapil-4s6ssr-1" class="wp-image-4777" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/kapil-4s6ssr-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>B. <strong>Ian Botham</strong><br>
Botham scores around 39 runs after 50 deliveries</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>3</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsman4s</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>batsman6s</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>batsmanScoringRateODTT</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4778" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/botham-4s6sr-1/"><img alt="botham-4s6sr-1" class="wp-image-4778" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/botham-4s6sr-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>C. <strong>Imran Khan</strong><br>
Imran scores around 36 runs for 50 deliveries</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>3</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsman4s</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>batsman6s</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>batsmanScoringRateODTT</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4779" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/imran-4s6ssr-1/"><img alt="imran-4s6ssr-1" class="wp-image-4779" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/imran-4s6ssr-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>D. <strong>Richard Hadlee</strong><br>
Hadlee also scores around 30 runs facing 50 deliveries</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>3</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsman4s</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>batsman6s</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>batsmanScoringRateODTT</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4780" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/hadlee-4s6sout-1/"><img alt="hadlee-4s6sout-1" class="wp-image-4780" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/hadlee-4s6sout-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Cumulative Average runs of batsman in career</h2>
<p>Kapils cumulative avrerage runs drops towards the last 15 innings wheres Botham had a good run towards the end of his career. Imran performance as a batsman really peaks towards the end with a cumulative average of almost 25 runs. Hadlee has a stead performance</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanCumulativeAverageRuns</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4781" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-car-1/"><img alt="kbih-car-1" class="wp-image-4781" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kbih-car-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>batsmanCumulativeAverageRuns</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4782" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-car-2/"><img alt="kbih-car-2" class="wp-image-4782" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kbih-car-2.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>batsmanCumulativeAverageRuns</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4783" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-car-3/"><img alt="kbih-car-3" class="wp-image-4783" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/kbih-car-3.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>batsmanCumulativeAverageRuns</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4784" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-car-4/"><img alt="kbih-car-4" class="wp-image-4784" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kbih-car-4.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Cumulative Average strike rate of batsman in career</h2>
<p>Kapil’s strike rate is superlative touching the 90’s steadily. Botham’s strike drops dramatically towards the latter part of his career. Imran average at a steady 75 and Hadlee averages around 85.</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanCumulativeStrikeRate</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4785" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-casr-1/"><img alt="kbih-casr-1" class="wp-image-4785" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kbih-casr-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>batsmanCumulativeStrikeRate</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4786" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-casr-2/"><img alt="kbih-casr-2" class="wp-image-4786" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kbih-casr-2.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>batsmanCumulativeStrikeRate</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4787" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-casr-3/"><img alt="kbih-casr-3" class="wp-image-4787" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/kbih-casr-3.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>batsmanCumulativeStrikeRate</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4788" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-casr-4/"><img alt="kbih-casr-4" class="wp-image-4788" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/kbih-casr-4.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Relative Mean Strike Rate</h2>
<p>Kapil tops the strike rate among all the all-rounders. This is really a revelation to me. This can also be seen in the original data in Kapil’s strike rate is at a whopping 95.07 in comparison to Botham, Inran and Hadlee who are at 79.1,72.65 and 75.50 respectively</p>
<pre><code><span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;./botham1.csv&quot;</span>,<span>&quot;imran1.csv&quot;</span>,<span>&quot;hadlee1.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBatsmanSRODTT</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4789" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/plot-1-1-6/"><img alt="plot-1-1" class="wp-image-4789" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/plot-1-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Relative Runs Frequency Percentage</h2>
<p>This plot shows that Imran has a much better average runs scored over the other all rounders followed by Kapil</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;./botham1.csv&quot;</span>,<span>&quot;imran1.csv&quot;</span>,<span>&quot;hadlee1.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeRunsFreqPerfODTT</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4790" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/plot-2-1-6/"><img alt="plot-2-1" class="wp-image-4790" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/plot-2-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Relative cumulative average runs in career</h2>
<p>It can be seen clearly that Imran Khan leads the pack in cumulative average runs followed by Kapil Dev and then Botham</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;./botham1.csv&quot;</span>,<span>&quot;imran1.csv&quot;</span>,<span>&quot;hadlee1.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<h2><a target="_blank" rel="attachment wp-att-4793" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-relcar-1/"><img alt="kbih-relcar-1" class="wp-image-4793" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kbih-relcar-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></h2>
<h2>Relative cumulative average strike rate in career</h2>
</div>
<div>
<p>In the cumulative strike rate Hadlee and Kapil run a close race.</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;./botham1.csv&quot;</span>,<span>&quot;imran1.csv&quot;</span>,<span>&quot;hadlee1.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4794" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kbih-relcsr-1/"><img alt="kbih-relcsr-1" class="wp-image-4794" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kbih-relcsr-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Percent 4’s,6’s in total runs scored</h2>
<p>The plot below shows the contrib</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;./botham1.csv&quot;</span>,<span>&quot;imran1.csv&quot;</span>,<span>&quot;hadlee1.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>runs4s6s</span> <span>&lt;-</span><span>batsman4s6s</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4795" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/plot-46s-1-4/"><img alt="plot-46s-1" class="wp-image-4795" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/plot-46s-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>print</span><span>(</span><span>runs4s6s</span><span>)</span></code></pre>
<pre><code>##                Kapil Botham Imran Hadlee
## Runs(1s,2s,3s) 72.08  66.53 77.53  73.27
## 4s             21.98  25.78 17.61  21.08
## 6s              5.94   7.68  4.86   5.65</code></pre>
</div>
<div>
<h2>Runs forecast</h2>
<p>The forecast for the batsman is shown below.</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanPerfForecast</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>batsmanPerfForecast</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>batsmanPerfForecast</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<pre><code><span>batsmanPerfForecast</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4796" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/plot-fcst-1/"><img alt="plot-fcst-1" class="wp-image-4796" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/plot-fcst-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>3D plot of Runs vs Balls Faced and Minutes at Crease</h2>
<p>The plot is a scatter plot of Runs vs Balls faced and Minutes at Crease. A prediction plane is fitted</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>battingPerf3d</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>battingPerf3d</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4797" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/plot-3-1-7/"><img alt="plot-3-1" class="wp-image-4797" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/plot-3-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>battingPerf3d</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>battingPerf3d</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4798" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/plot-4-1-7/"><img alt="plot-4-1" class="wp-image-4798" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/plot-4-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Predicting Runs given Balls Faced and Minutes at Crease</h2>
<p>A multi-variate regression plane is fitted between Runs and Balls faced +Minutes at crease.</p>
<pre><code><span>BF</span> <span>&lt;-</span> <span>seq</span><span>(</span> <span>10</span>, <span>200</span>,<span>length</span><span>=</span><span>10</span><span>)</span>
<span>Mins</span> <span>&lt;-</span> <span>seq</span><span>(</span><span>30</span>,<span>220</span>,<span>length</span><span>=</span><span>10</span><span>)</span>
<span>newDF</span> <span>&lt;-</span> <span>data.frame</span><span>(</span><span>BF</span>,<span>Mins</span><span>)</span>

<span>kapil</span> <span>&lt;-</span> <span>batsmanRunsPredict</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span>,<span>newdataframe</span><span>=</span><span>newDF</span><span>)</span>
<span>botham</span> <span>&lt;-</span> <span>batsmanRunsPredict</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span>,<span>newdataframe</span><span>=</span><span>newDF</span><span>)</span>
<span>imran</span> <span>&lt;-</span> <span>batsmanRunsPredict</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span>,<span>newdataframe</span><span>=</span><span>newDF</span><span>)</span>
<span>hadlee</span> <span>&lt;-</span> <span>batsmanRunsPredict</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span>,<span>newdataframe</span><span>=</span><span>newDF</span><span>)</span></code></pre>
<p>The fitted model is then used to predict the runs that the batsmen will score for a hypotheticial Balls faced and Minutes at crease. It can be seen that Kapil is the best bet for a balls faced and minutes at crease followed by Botham.</p>
<pre><code><span>batsmen</span> <span>&lt;-</span><span>cbind</span><span>(</span><span>round</span><span>(</span><span>kapil</span><span>$</span><span>Runs</span><span>)</span>,<span>round</span><span>(</span><span>botham</span><span>$</span><span>Runs</span><span>)</span>,<span>round</span><span>(</span><span>imran</span><span>$</span><span>Runs</span><span>)</span>,<span>round</span><span>(</span><span>hadlee</span><span>$</span><span>Runs</span><span>)</span><span>)</span>
<span>colnames</span><span>(</span><span>batsmen</span><span>)</span> <span>&lt;-</span> <span>c</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>newDF</span> <span>&lt;-</span> <span>data.frame</span><span>(</span><span>round</span><span>(</span><span>newDF</span><span>$</span><span>BF</span><span>)</span>,<span>round</span><span>(</span><span>newDF</span><span>$</span><span>Mins</span><span>)</span><span>)</span>
<span>colnames</span><span>(</span><span>newDF</span><span>)</span> <span>&lt;-</span> <span>c</span><span>(</span><span>&quot;BallsFaced&quot;</span>,<span>&quot;MinsAtCrease&quot;</span><span>)</span>
<span>predictedRuns</span> <span>&lt;-</span> <span>cbind</span><span>(</span><span>newDF</span>,<span>batsmen</span><span>)</span>
<span>predictedRuns</span></code></pre>
<pre><code>##    BallsFaced MinsAtCrease Kapil Botham Imran Hadlee
## 1          10           30    16      6    10     15
## 2          31           51    33     22    22     28
## 3          52           72    49     38    33     42
## 4          73           93    65     54    45     56
## 5          94          114    81     70    56     70
## 6         116          136    97     86    67     84
## 7         137          157   113    102    79     97
## 8         158          178   130    117    90    111
## 9         179          199   146    133   102    125
## 10        200          220   162    149   113    139</code></pre>
</div>
<div>
<h2>Highest runs likelihood</h2>
<p>The plots below the runs likelihood of batsman. This uses K-Means . A. Kapil Dev</p>
<pre><code><span>batsmanRunsLikelihood</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4799" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kapil11-1/"><img alt="kapil11-1" class="wp-image-4799" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kapil11-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code>## Summary of  Kapil 's runs scoring likelihood
## **************************************************
## 
## There is a 34.57 % likelihood that Kapil  will make  22 Runs in  24 balls over 34  Minutes 
## There is a 17.28 % likelihood that Kapil  will make  46 Runs in  46 balls over  65  Minutes 
## There is a 48.15 % likelihood that Kapil  will make  5 Runs in  7 balls over 9  Minutes</code></pre>
<p>B. Ian Botham</p>
<pre><code><span>batsmanRunsLikelihood</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4800" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/devilliers-1/"><img alt="devilliers-1" class="wp-image-4800" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/devilliers-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code>## Summary of  Botham 's runs scoring likelihood
## **************************************************
## 
## There is a 47.95 % likelihood that Botham  will make  9 Runs in  12 balls over 15  Minutes 
## There is a 39.73 % likelihood that Botham  will make  23 Runs in  32 balls over  44  Minutes 
## There is a 12.33 % likelihood that Botham  will make  59 Runs in  74 balls over 101  Minutes</code></pre>
<p>C. Imran Khan</p>
<pre><code><span>batsmanRunsLikelihood</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4801" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/gaylecache-true-1/"><img alt="gaylecache-true-1" class="wp-image-4801" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/gaylecache-true-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code>## Summary of  Imran 's runs scoring likelihood
## **************************************************
## 
## There is a 23.33 % likelihood that Imran  will make  36 Runs in  54 balls over 74  Minutes 
## There is a 60 % likelihood that Imran  will make  14 Runs in  18 balls over  23  Minutes 
## There is a 16.67 % likelihood that Imran  will make  53 Runs in  90 balls over 115  Minutes</code></pre>
<p>D. Richard Hadlee</p>
<pre><code><span>batsmanRunsLikelihood</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><a target="_blank" rel="attachment wp-att-4803" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/maxwell-1/"><img alt="maxwell-1" class="wp-image-4803" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/maxwell-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a><img></p>
<pre><code>## Summary of  Hadlee 's runs scoring likelihood
## **************************************************
## 
## There is a 6.1 % likelihood that Hadlee  will make  64 Runs in  79 balls over 90  Minutes 
## There is a 42.68 % likelihood that Hadlee  will make  25 Runs in  33 balls over  44  Minutes 
## There is a 51.22 % likelihood that Hadlee  will make  9 Runs in  11 balls over 15  Minutes</code></pre>
</div>
<div>
<h2>Average runs at ground and against opposition</h2>
<p>A. Kapil Dev</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanAvgRunsGround</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>batsmanAvgRunsOpposition</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4804" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/avgrg-1-1-4/"><img alt="avgrg-1-1" class="wp-image-4804" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/avgrg-1-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>B. Ian Botham</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanAvgRunsGround</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>batsmanAvgRunsOpposition</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4805" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/avgrg-2-1-4/"><img alt="avgrg-2-1" class="wp-image-4805" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/avgrg-2-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>C. Imran Khan</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanAvgRunsGround</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>batsmanAvgRunsOpposition</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4806" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/avgrg-3-1-4/"><img alt="avgrg-3-1" class="wp-image-4806" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/avgrg-3-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>D. Richard Hadlee</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanAvgRunsGround</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>batsmanAvgRunsOpposition</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4807" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/avgrg-4-1-5/"><img alt="avgrg-4-1" class="wp-image-4807" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/avgrg-4-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Moving Average of runs over career</h2>
<p>The moving average for the 4 batsmen indicate the following</p>
<p>Kapil’s performance drops significantly while there is a slump in Botham’s performance. On the other hand Imran and Hadlee’s performance were on the upswing.</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>batsmanMovingAverage</span><span>(</span><span>&quot;./kapil1.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>batsmanMovingAverage</span><span>(</span><span>&quot;./botham1.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>batsmanMovingAverage</span><span>(</span><span>&quot;./imran1.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>batsmanMovingAverage</span><span>(</span><span>&quot;./hadlee1.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4809" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/sdgm-ma-1-4/"><img alt="sdgm-ma-1" class="wp-image-4809" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/sdgm-ma-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Check batsmen in-form, out-of-form</h2>
<p>[1] “**************************** Form status of Kapil ****************************\n\n<br>
Population size: 72<br>
Mean of population: 19.38 \n<br>
Sample size: 9 Mean of sample: 6.78 SD of sample: 6.14 \n\n<br>
Null hypothesis H0 : Kapil ‘s sample average is within 95% confidence interval of population average\n<br>
Alternative hypothesis Ha : Kapil ‘s sample average is below the 95% confidence interval of population average\n\n<br>
Kapil ‘s Form Status: Out-of-Form because the p value: 8.4e-05 is less than alpha= 0.05</p>
<p>“**************************** Form status of Botham ****************************\n\n<br>
Population size: 65<br>
Mean of population: 21.29 \n<br>
Sample size: 8 Mean of sample: 15.38 SD of sample: 13.19 \n\n<br>
Null hypothesis H0 : Botham ‘s sample average is within 95% confidence interval of population average\n<br>
Alternative hypothesis Ha : Botham ‘s sample average is below the 95% confidence interval of population average\n\n<br>
Botham ‘s Form Status: In-Form because the p value: 0.120342 is greater than alpha= 0.05 \n</p>
<p>“**************************** Form status of Imran ****************************\n\n<br>
Population size: 54<br>
Mean of population: 24.94 \n<br>
Sample size: 6 Mean of sample: 30.83 SD of sample: 25.4 \n\n<br>
Null hypothesis H0 : Imran ‘s sample average is within 95% confidence interval of population average\n<br>
Alternative hypothesis Ha : Imran ‘s sample average is below the 95% confidence interval of population average\n\n<br>
Imran ‘s Form Status: In-Form because the p value: 0.704683 is greater than alpha= 0.05 \n</p>
<p>“**************************** Form status of Hadlee ****************************\n\n<br>
Population size: 73<br>
Mean of population: 18 \n<br>
Sample size: 9 Mean of sample: 27 SD of sample: 24.27 \n\n<br>
Null hypothesis H0 : Hadlee ‘s sample average is within 95% confidence interval of population average\n<br>
Alternative hypothesis Ha : Hadlee ‘s sample average is below the 95% confidence interval of population average\n\n<br>
Hadlee ‘s Form Status: In-Form because the p value: 0.85262 is greater than alpha= 0.05 \n *******************************************************************************************\n\n”</p>
<div>
<h2>Analyses of bowling performances of the All Rounders</h2>
<p>The following plots gives the analysis of the 4 ODI batsmen</p>
<ol>
<li>Kapil Dev (Ind) – Innings – 225, Wickets = 253, Average=27.45, Economy Rate= 3.71</li>
<li>Ian Botham (Eng) – Innings – 116, Wickets = 145, Average=28.54, Economy Rate= 3.96</li>
<li>Imran Khan (Pak) – Innings – 175, Wickets = 182, Average=26.61, Economy Rate= 3.89</li>
<li>Richard Hadlee (NZ) – Innings – 115, Wickets = 158, Average=21.56, Economy Rate= 3.30</li>
</ol>
<p>Botham has the highest number of innings and wickets followed closely by Mitchell. Imran and Hadlee have relatively fewer innings.</p>
<p>To get the bowler’s data use</p>
<pre><code><span>#kapil2 &lt;- getPlayerDataOD(30028,dir=&quot;..&quot;,file=&quot;kapil2.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#botham2 &lt;- getPlayerDataOD(9163,dir=&quot;..&quot;,file=&quot;botham2.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#imran2 &lt;- getPlayerDataOD(40560,dir=&quot;..&quot;,file=&quot;imran2.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#hadlee2 &lt;- getPlayerDataOD(37224,dir=&quot;..&quot;,file=&quot;hadlee2.csv&quot;,type=&quot;bowling&quot;)</span></code></pre>
<p>“`</p>
</div>
</div>
<div>
<h1>Wicket Frequency percentage</h1>
<p>This plot gives the percentage of wickets for each wickets (1,2,3…etc).</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>4</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerWktsFreqPercent</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>bowlerWktsFreqPercent</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>bowlerWktsFreqPercent</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>bowlerWktsFreqPercent</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4810" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/relbowlfp-1-6/"><img alt="relbowlfp-1" class="wp-image-4810" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/relbowlfp-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<div>
<h2>Wickets Runs plot</h2>
<p>The plot below gives a boxplot of the runs ranges for each of the wickets taken by the bowlers.</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>4</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>

<span>bowlerWktsRunsPlot</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>bowlerWktsRunsPlot</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>bowlerWktsRunsPlot</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>bowlerWktsRunsPlot</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4811" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/wktsrun-1-6/"><img alt="wktsrun-1" class="wp-image-4811" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/wktsrun-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Cumulative average wicket plot</h2>
<p>Botham has the best cumulative average wicket touching almost 1.6 wickets followed by Hadlee</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>3</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerCumulativeAvgWickets</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4812" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcaw-1-2/"><img alt="kwm-bowlcaw-1" class="wp-image-4812" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcaw-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>bowlerCumulativeAvgWickets</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4813" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcaw-2-2/"><img alt="kwm-bowlcaw-2" class="wp-image-4813" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcaw-2.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>bowlerCumulativeAvgWickets</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4814" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcaw-3-2/"><img alt="kwm-bowlcaw-3" class="wp-image-4814" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcaw-3.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>bowlerCumulativeAvgWickets</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4815" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcaw-4/"><img alt="kwm-bowlcaw-4" class="wp-image-4815" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcaw-4.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>3</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerCumulativeAvgEconRate</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4816" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcer-1-2/"><img alt="kwm-bowlcer-1" class="wp-image-4816" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcer-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>bowlerCumulativeAvgEconRate</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4817" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcer-2-2/"><img alt="kwm-bowlcer-2" class="wp-image-4817" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcer-2.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>bowlerCumulativeAvgEconRate</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4818" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcer-3-2/"><img alt="kwm-bowlcer-3" class="wp-image-4818" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcer-3.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>bowlerCumulativeAvgEconRate</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4819" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/kwm-bowlcer-4/"><img alt="kwm-bowlcer-4" class="wp-image-4819" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/kwm-bowlcer-4.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Average wickets in different grounds and opposition</h2>
<p>A. Kapil Dev</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerAvgWktsGround</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>bowlerAvgWktsOpposition</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4820" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/gr-1-1-3/"><img alt="gr-1-1" class="wp-image-4820" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/gr-1-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>B. Ian Botham</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerAvgWktsGround</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>bowlerAvgWktsOpposition</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4821" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/gr-2-1-3/"><img alt="gr-2-1" class="wp-image-4821" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/gr-2-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>C. Imran Khan</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerAvgWktsGround</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>bowlerAvgWktsOpposition</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4822" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/gr-3-1-3/"><img alt="gr-3-1" class="wp-image-4822" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/gr-3-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
<p>D. Richard Hadlee</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>1</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerAvgWktsGround</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>bowlerAvgWktsOpposition</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4823" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/gr-4-1-2/"><img alt="gr-4-1" class="wp-image-4823" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/gr-4-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Relative bowling performance</h2>
<p>It can be seen that Botham is the most effective wicket taker of the lot</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;./botham2.csv&quot;</span>,<span>&quot;imran2.csv&quot;</span>,<span>&quot;hadlee2.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBowlingPerf</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4824" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/relbowlperf-1-7/"><img alt="relbowlperf-1" class="wp-image-4824" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/relbowlperf-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Relative Economy Rate against wickets taken</h2>
<p>Hadlee has the best overall economy rate followed by Kapil Dev</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;./botham2.csv&quot;</span>,<span>&quot;imran2.csv&quot;</span>,<span>&quot;hadlee2.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBowlingERODTT</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4825" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/relbowler-1-7/"><img alt="relbowler-1" class="wp-image-4825" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/relbowler-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Relative cumulative average wickets of bowlers in career</h2>
<p>This plot confirms the wicket taking ability of Botham followed by Hadlee</p>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;./botham2.csv&quot;</span>,<span>&quot;imran2.csv&quot;</span>,<span>&quot;hadlee2.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBowlerCumulativeAvgWickets</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4826" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/rbcaw-1-2/"><img alt="rbcaw-1" class="wp-image-4826" src="https://i0.wp.com/gigadom.files.wordpress.com/2016/09/rbcaw-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Relative cumulative average economy rate of bowlers</h2>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;./botham2.csv&quot;</span>,<span>&quot;imran2.csv&quot;</span>,<span>&quot;hadlee2.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Kapil&quot;</span>,<span>&quot;Botham&quot;</span>,<span>&quot;Imran&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span>
<span>relativeBowlerCumulativeAvgEconRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4827" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/rbcer-1-2/"><img alt="rbcer-1" class="wp-image-4827" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/rbcer-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
</div>
<div>
<h2>Moving average of wickets over career</h2>
<p>This plot shows that Hadlee has the best economy rate followed by Kapil</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerMovingAverage</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>bowlerMovingAverage</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>bowlerMovingAverage</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>bowlerMovingAverage</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4828" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/jmss-bowlma-1-2/"><img alt="jmss-bowlma-1" class="wp-image-4828" src="https://i1.wp.com/gigadom.files.wordpress.com/2016/09/jmss-bowlma-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Wickets forecast</h2>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>par</span><span>(</span><span>mar</span><span>=</span><span>c</span><span>(</span><span>4</span>,<span>4</span>,<span>2</span>,<span>2</span><span>)</span><span>)</span>
<span>bowlerPerfForecast</span><span>(</span><span>&quot;./kapil2.csv&quot;</span>,<span>&quot;Kapil&quot;</span><span>)</span>
<span>bowlerPerfForecast</span><span>(</span><span>&quot;./botham2.csv&quot;</span>,<span>&quot;Botham&quot;</span><span>)</span>
<span>bowlerPerfForecast</span><span>(</span><span>&quot;./imran2.csv&quot;</span>,<span>&quot;Imran&quot;</span><span>)</span>
<span>bowlerPerfForecast</span><span>(</span><span>&quot;./hadlee2.csv&quot;</span>,<span>&quot;Hadlee&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="attachment wp-att-4829" href="https://gigadom.wordpress.com/2016/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/jjmss-pfcst-1/"><img alt="jjmss-pfcst-1" class="wp-image-4829" src="https://i2.wp.com/gigadom.files.wordpress.com/2016/09/jjmss-pfcst-1.png?resize=456%2C326&ssl=1" data-recalc-dims="1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
<div>
<h2>Check bowler in-form, out-of-form</h2>
<p>“**************************** Form status of Kapil ****************************\n\n<br>
Population size: 198<br>
Mean of population: 1.2 \n Sample size: 23 Mean of sample: 0.65 SD of sample: 0.83 \n\n<br>
Null hypothesis H0 : Kapil ‘s sample average is within 95% confidence interval \n of population average\n<br>
Alternative hypothesis Ha : Kapil ‘s sample average is below the 95% confidence\n interval of population average\n\n<br>
Kapil ‘s Form Status: Out-of-Form because the p value: 0.002097 is less than alpha= 0.05 \n</p>
<p>“**************************** Form status of Botham ****************************\n\n<br>
Population size: 166<br>
Mean of population: 1.58 \n Sample size: 19 Mean of sample: 1.47 SD of sample: 1.12 \n\n<br>
Null hypothesis H0 : Botham ‘s sample average is within 95% confidence interval \n of population average\n<br>
Alternative hypothesis Ha : Botham ‘s sample average is below the 95% confidence\n interval of population average\n\n<br>
Botham ‘s Form Status: In-Form because the p value: 0.336694 is greater than alpha= 0.05 \n</p>
<p>“**************************** Form status of Imran ****************************\n\n<br>
Population size: 137<br>
Mean of population: 1.23 \n Sample size: 16 Mean of sample: 0.81 SD of sample: 0.91 \n\n<br>
Null hypothesis H0 : Imran ‘s sample average is within 95% confidence interval \n of population average\n<br>
Alternative hypothesis Ha : Imran ‘s sample average is below the 95% confidence\n interval of population average\n\n<br>
Imran ‘s Form Status: Out-of-Form because the p value: 0.041727 is less than alpha= 0.05 \n</p>
<p>“**************************** Form status of Hadlee ****************************\n\n<br>
Population size: 100<br>
Mean of population: 1.38 \n Sample size: 12 Mean of sample: 1.67 SD of sample: 1.37 \n\n<br>
Null hypothesis H0 : Hadlee ‘s sample average is within 95% confidence interval \n of population average\n<br>
Alternative hypothesis Ha : Hadlee ‘s sample average is below the 95% confidence\n interval of population average\n\n<br>
Hadlee ‘s Form Status: In-Form because the p value: 0.761265 is greater than alpha= 0.05 \n *******************************************************************************************\n\n”</p>
<div>
<h1>Key findings</h1>
<p>Here are some key conclusions <strong>ODI batsmen</strong></p>
<ol>
<li>Kapil Dev’s strike rate stands high above the other 3</li>
<li>Imran Khan has the best cumulative average runs followed by Kapil</li>
<li>Botham is the most effective wicket taker followed by Hadlee</li>
<li>Hadlee is the most economical bowler and is followed by Kapil Dev</li>
<li>For a hypothetical Balls Faced and Minutes at creases Kapil will score the most runs followed by Botham</li>
<li>The moving average of indicates that the best is yet to come for Imran and Hadlee. Kapil and Botham were on the decline</li>
</ol>
<p>Also see my other posts in R</p>
<ol>
<li><a target="_blank" href="https://gigadom.wordpress.com/2016/06/01/a-primer-on-qubits-quantum-gates-and-quantum-operations/">A primer on Qubits, Quantum gates abd Quantum operations</a></li>
<li><a target="_blank" href="https://gigadom.wordpress.com/2012/05/11/deblurring-with-opencv-weiner-filter-reloaded/">Deblurring with OpenCV:Weiner filter reloaded</a></li>
<li><a target="_blank" href="https://gigadom.wordpress.com/2013/02/14/designing-a-social-web-portal/">Designing a Social Web Portal</a></li>
<li><a target="_blank" href="https://gigadom.wordpress.com/2015/01/16/a-crime-map-of-india-in-r-crime-against-women/">A crime map of India in R – Crimes against women</a></li>
<li><a target="_blank" href="https://gigadom.wordpress.com/2014/11/05/bend-it-like-bluemix-mongodb-using-auto-scaling-part-2/">Bend it like Bluemix, MongoDB with autoscaling – Part 2</a></li>
<li><a target="_blank" href="https://gigadom.wordpress.com/2015/03/24/mirror-mirror-the-best-batsman-of-them-all/">Mirror, mirror . the best batsman of them all?</a></li>
</ol>
<p>For a full list of posts see <a target="_blank" href="https://gigadom.wordpress.com/aa-2/">Index of posts</a></p>
</div>
</div>
</div>
</div>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gigadom.wordpress.com/4775/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/gigadom.wordpress.com/4775/" 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><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/"></div></div><div><a data-url="https://www.r-bloggers.com/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/" data-counturl="https://www.r-bloggers.com/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/" data-count="vertical" data-text="cricketr sizes up legendary All-rounders of yesteryear" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<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/09/10/cricketr-sizes-up-legendary-all-rounders-of-yesteryear/"> 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/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=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/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/dJ2yxzDs3Gw"></a></div>