<div>
<div>
<p><em>Twas brillig, and the slithy toves<br>
Did gyre and gimble in the wabe:<br>
All mimsy were the borogoves,<br>
And the mome raths outgrabe.<br>
</em></p>
<pre><code>       Jabberwocky by Lewis Carroll
                   </code></pre>
<p>No analysis of cricket is complete, without determining how players would perform in the host country. Playing Test cricket on foreign pitches, in the host country, is a ‘real test’ for both batsmen and bowlers. Players, who can perform consistently both on domestic and foreign pitches are the genuinely ‘class’ players. Player performance on foreign pitches lets us differentiate the paper tigers, and home ground bullies among batsmen. Similarly, spinners who perform well, only on rank turners in home ground or pace bowlers who can only swing and generate bounce on specially prepared pitches are neither  genuine spinners nor  real pace bowlers.</p>
<p>So this post, helps in identifying those with real strengths, and those who play good only when the conditions are in favor, in home grounds. This post brings a certain level of finality to the analysis of players with my R package ‘cricketr’</p>
<p>Besides, I also meant ‘final analysis’ in the literal sense, as I intend to take a long break from cricket analysis/analytics and focus on some other domains like Neural Networks, Deep Learning and Spark.</p>
<p>As already mentioned, my R package ‘<a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/cricketr/index.html">cricketr</a>’ uses the statistics info available in <a target="_blank" rel="nofollow" href="http://stats.espncricinfo.com/ci/engine/stats/index.html">ESPN Cricinfo Statsguru</a>. You should be able to install the package from CRAN and use many of the functions available in the package. Please be mindful of <a target="_blank" rel="nofollow" href="http://www.espncricinfo.com/ci/content/site/company/terms_use.html">ESPN Cricinfo Terms of Use</a></p>
<p>(Note: This page is also hosted at RPubs as <a target="_blank" rel="nofollow" href="http://rpubs.com/tvganesh/cricketrFinalAnalysis">cricketrFinalAnalysis</a>. You can download the PDF file at <a target="_blank" rel="nofollow" href="https://drive.google.com/file/d/0Bxz66bp5PxPBT1NueFlpZGt5YTA/view?usp=sharing">cricketrFinalAnalysis.</a></p>
<p>For getting data of a player against a particular country for the match played in the host country, I just had to add 2 extra parameters to the getPlayerData() function. The cricketr package has been updated with the changed functions for getPlayerData() – Tests, getPlayerDataOD() – ODI and getPlayerDataTT() for the Twenty20s. The updated functions will be available in cricketr Version -0.0.14</p>
<p>The data for the following players have already been obtained with the new, changed getPlayerData() function and have been saved as *.csv files. I will be re-using these files, instead of getting them all over again. Hence the getPlayerData() lines have been commented below</p>
<pre><code><span>library</span><span>(</span><span>cricketr</span><span>)</span></code></pre>
<div>
<h4>1. Performance of a batsman against a host ountry in the host country</h4>
<p>For e.g We can the get the data for Sachin Tendulkar for matches played against Australia and in Australia Here opposition=2 and host =2 indicate that the opposition is Australia and the host country is also Australia</p>
<pre><code><span>#tendulkarAus=getPlayerData(35320,opposition=2,host=2,file=&quot;tendulkarVsAusInAus.csv&quot;,type=&quot;batting&quot;)</span></code></pre>
<p>All cricketr functions can be used with this data frame, as before. All the charts show the performance of Tendulkar in Australia against Australia.</p>
<pre><code><span>par</span><span>(</span><span>mfrow</span><span>=</span><span>c</span><span>(</span><span>2</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;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;Tendulkar&quot;</span><span>)</span>
<span>batsman6s</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;Tendulkar&quot;</span><span>)</span>
<span>batsmanRunsRanges</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;Tendulkar&quot;</span><span>)</span>
<span>batsmanDismissals</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;Tendulkar&quot;</span><span>)</span>
<span>batsmanAvgRunsGround</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;Tendulkar&quot;</span><span>)</span>
<span>batsmanMovingAverage</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;Tendulkar&quot;</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic1-1-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic1-11.png" data-orig-size="1344,960" data-image-title="pic1-1" class="wp-image-5340" data-comments-opened="1" data-recalc-dims="1" data-attachment-id="5340" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic1-1-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic1-11.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic1-11.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic1-11.png?w=450&ssl=1"></a></p>
<pre><code><span>dev.off</span><span>(</span><span>)</span></code></pre>
<pre><code>## null device 
##           1</code></pre>
</div>
</div>
<div>
<h1>2. Relative performances of international batsmen against England in England</h1>
<p>While we can analyze the performance of a player against an opposition in some host country, I wanted to compare the relative performances of players, to see how players from different nations play in a host country which is not their home ground.</p>
<p>The following lines gets player’s data of matches played in England and against England.The Oval, Lord’s are famous for generating some dangerous swing and bounce. I chose the following players</p>
<ol>
<li>Sir Don Bradman (Australia)</li>
<li>Steve Waugh (Australia)</li>
<li>Rahul Dravid (India)</li>
<li>Vivian Richards (West Indies)</li>
<li>Sachin Tendulkar (India)</li>
</ol>
<pre><code><span>#tendulkarEng=getPlayerData(35320,opposition=1,host=1,file=&quot;tendulkarVsEngInEng.csv&quot;,type=&quot;batting&quot;)</span>
<span>#bradmanEng=getPlayerData(4188,opposition=1,host=1,file=&quot;bradmanVsEngInEng.csv&quot;,type=&quot;batting&quot;)</span>
<span>#srwaughEng=getPlayerData(8192,opposition=1,host=1,file=&quot;srwaughVsEngInEng.csv&quot;,type=&quot;batting&quot;)</span>
<span>#dravidEng=getPlayerData(28114,opposition=1,host=1,file=&quot;dravidVsEngInEng.csv&quot;,type=&quot;batting&quot;)</span>
<span>#vrichardEng=getPlayerData(52812,opposition=1,host=1,file=&quot;vrichardsEngInEng.csv&quot;,type=&quot;batting&quot;)</span></code></pre>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/tendulkarVsEngInEng.csv&quot;</span>,<span>&quot;./data/bradmanVsEngInEng.csv&quot;</span>,<span>&quot;./data/srwaughVsEngInEng.csv&quot;</span>,
               <span>&quot;./data/dravidVsEngInEng.csv&quot;</span>,<span>&quot;./data/vrichardsEngInEng.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;S Tendulkar&quot;</span>,<span>&quot;D Bradman&quot;</span>,<span>&quot;SR Waugh&quot;</span>,<span>&quot;R Dravid&quot;</span>,<span>&quot;Viv Richards&quot;</span><span>)</span></code></pre>
<p>The Lords and the Oval in England are some of the best pitches in the world. Scoring on these pitches and weather conditions, where there is both swing and bounce really requires excellent batting skills. It can be easily seen that Don Bradman stands heads and shoulders over everybody else, averaging close a cumulative average of 100+. He is followed by Viv Richards, who averages around ~60. Interestingly in English conditions, Rahul Dravid edges out Sachin Tendulkar.</p>
<pre><code><span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic2-1/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic2-1.png" data-orig-size="938,672" data-image-title="pic2-1" data-comments-opened="1" class="wp-image-5341" data-recalc-dims="1" data-attachment-id="5341" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic2-1/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic2-1.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic2-1.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic2-1.png?w=450&ssl=1"></a></p>
<pre><code><span># The other 2 plots on relative strike rate and cumulative average strike rate,
shows Viv Richards really </span><span> blasts the bowling. Viv Richards has a strike rate of 70, while Bradman 62+, followed by Tendulkar.</span>
<span>relativeBatsmanSR</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic2-2-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic2-2.png" data-orig-size="941,672" data-image-title="pic2-2" data-comments-opened="1" class="wp-image-5342" data-recalc-dims="1" data-attachment-id="5342" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic2-2-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic2-2.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic2-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic2-2.png?w=450&ssl=1"></a></p>
<pre><code><span>relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic2-3-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic2-3.png" data-orig-size="1344,960" data-image-title="pic2-3" data-comments-opened="1" class="wp-image-5343" data-recalc-dims="1" data-attachment-id="5343" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic2-3-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic2-3.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic2-3.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic2-3.png?w=450&ssl=1"></a></p>
<div>
<h3>3. Relative performances of international batsmen against Australia in Australia</h3>
<p>The following players from these countries were chosen</p>
<ol>
<li>Sachin Tendulkar (India)</li>
<li>Viv Richard (West Indies)</li>
<li>David Gower (England)</li>
<li>Jacques Kallis (South Africa)</li>
<li>Alastair Cook (Emgland)</li>
</ol>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;./data/vrichardsVAusInAus.csv&quot;</span>,<span>&quot;./data/dgowerVsAusInAus.csv&quot;</span>,
               <span>&quot;./data/kallisVsAusInAus.csv&quot;</span>,<span>&quot;./data/ancookVsWIInWI.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;S Tendulkar&quot;</span>,<span>&quot;Viv Richards&quot;</span>,<span>&quot;David Gower&quot;</span>,<span>&quot;J Kallis&quot;</span>,<span>&quot;AN Cook&quot;</span><span>)</span></code></pre>
<p>Alastair Cook of England has fantastic cumulative average of 55+ on the pitches of Australia. There is a dip towards the end, but we cannot predict whether it would have continued. AN Cook is followed by Tendulkar who has a steady average of 50+ runs, after which there is Viv Richards.</p>
<pre><code><span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic3-1/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic3-1.png" data-orig-size="941,672" data-image-title="pic3-1" data-comments-opened="1" class="wp-image-5345" data-recalc-dims="1" data-attachment-id="5345" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic3-1/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic3-1.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic3-1.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic3-1.png?w=450&ssl=1"></a></p>
<pre><code><span>#With respect to cumulative or relative strike rate Viv Richards is a class apart.He seems to really</span>
<span>#tear into bowlers. David Gower has an excellent strike rate and is followed by Tendulkar</span>
<span>relativeBatsmanSR</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic3-2-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic3-2.png" data-orig-size="1344,960" data-image-title="pic3-2" data-comments-opened="1" class="wp-image-5346" data-recalc-dims="1" data-attachment-id="5346" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic3-2-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic3-2.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic3-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic3-2.png?w=450&ssl=1"></a></p>
<pre><code><span>relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic3-3-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic3-3.png" data-orig-size="1344,960" data-image-title="pic3-3" data-comments-opened="1" class="wp-image-5347" data-recalc-dims="1" data-attachment-id="5347" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic3-3-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic3-3.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic3-3.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic3-3.png?w=450&ssl=1"></a></p>
</div>
</div>
<div>
<h1>4. Relative performances of international batsmen against India in India</h1>
<p>While England &amp; Australia are famous for bouncy tracks with swing, Indian pitches are renowed for being extraordinary turners. Also India has always thrown up world class spinners, from the spin quartet of BS Chandraskehar, Bishen Singh Bedi, EAS Prasanna, S Venkatraghavan, to the times of dangerous Anil Kumble, and now to the more recent Ravichander Ashwon and Harbhajan Singh.</p>
<p>A batsmen who can score runs in India against Indian spinners has to be really adept in handling all kinds of spin.</p>
<p>While Clive Lloyd &amp; Alvin Kallicharan had the best performance against India, they have not been included as ESPN Cricinfo had many of the columns missing.</p>
<p>So I chose the following international players for the analysis against India</p>
<ol>
<li>Hashim Amla (South Africa)</li>
<li>Alastair Cook (England)</li>
<li>Matthew Hayden (Australia)</li>
<li>Viv Richards (West Indies)</li>
</ol>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/amlaVsIndInInd.csv&quot;</span>,<span>&quot;./data/ancookVsIndInInd.csv&quot;</span>,<span>&quot;./data/mhaydenVsIndInInd.csv&quot;</span>,
               <span>&quot;./data/vrichardsVsIndInInd.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;H Amla&quot;</span>,<span>&quot;AN Cook&quot;</span>,<span>&quot;M Hayden&quot;</span>,<span>&quot;Viv Riachards&quot;</span><span>)</span></code></pre>
<p>Excluding Clive Lloyd &amp; Alvin Kallicharan the next best performer against India is Hashim Amla,followed by Alastair Cook, Viv Richards.</p>
<pre><code><span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic4-1/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic4-1.png" data-orig-size="941,672" data-image-title="pic4-1" data-comments-opened="1" class="wp-image-5349" data-recalc-dims="1" data-attachment-id="5349" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic4-1/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic4-1.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic4-1.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic4-1.png?w=450&ssl=1"></a></p>
<pre><code><span>#With respect to strike rate, there is no contest when Viv Richards is around. He is clearly the best </span>
<span>#striker of the ball regardless of whether it is the pacy wickets of #Australia/England or the spinning </span><span>tracks of the subcontinent. After #Viv Richards, Hayden and Alastair Cook have good cumulative strike rates
#in India</span>
<span>relativeBatsmanSR</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic4-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic4-2.png" data-orig-size="1344,960" data-image-title="pic4-2" data-comments-opened="1" class="wp-image-5351" data-recalc-dims="1" data-attachment-id="5351" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic4-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic4-2.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic4-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic4-2.png?w=450&ssl=1"></a><img></p>
<pre><code><span>relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic4-3/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic4-3.png" data-orig-size="941,672" data-image-title="pic4-3" data-comments-opened="1" class="wp-image-5350" data-recalc-dims="1" data-attachment-id="5350" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic4-3/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic4-3.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic4-3.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic4-3.png?w=450&ssl=1"></a></p>
<div>
<h2>5. All time greats of Indian batting</h2>
<p>I couldn’t resist checking out how the top Indian batsmen perform when playing in host countries So here is a look at how the top Indian batsmen perform against different host countries</p>
</div>
</div>
<div>
<h1>6. Top Indian batsmen against Australia in Australia</h1>
<p>The following Indian batsmen were chosen</p>
<ol>
<li>Sunil Gavaskar</li>
<li>Sachin Tendulkar</li>
<li>Virat Kohli</li>
<li>Virendar Sehwag</li>
<li>VVS Laxman</li>
</ol>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/tendulkarVsAusInAus.csv&quot;</span>,<span>&quot;./data/gavaskarVsAusInAus.csv&quot;</span>,<span>&quot;./data/kohliVsAusInAus.csv&quot;</span>,
               <span>&quot;./data/sehwagVsAusInAus.csv&quot;</span>,<span>&quot;./data/vvslaxmanVsAusInAus.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;S Tendulkar&quot;</span>,<span>&quot;S Gavaskar&quot;</span>,<span>&quot;V Kohli&quot;</span>,<span>&quot;V Sehwag&quot;</span>,<span>&quot;VVS Laxman&quot;</span><span>)</span></code></pre>
<p>Virat Kohli has the best overall performance against Australia, with a current cumulative average of 60+ runs for the total number of innings played by him (15). With 15 matches the 2nd best is Virendar Sehwag, followed by VVS Laxman. Tendulkar maintains a cumulative average of 48+ runs for an excess of 30+ innings.</p>
<pre><code><span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img> <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic5-1-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic5-11.png" data-orig-size="941,672" data-image-title="pic5-1" data-comments-opened="1" class="wp-image-5355" data-recalc-dims="1" data-attachment-id="5355" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic5-1-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic5-11.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic5-11.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic5-11.png?w=450&ssl=1"></a></p>
<pre><code><span># Sehwag leads the strike rate against host Australia, followed by # Tendulkar in Australia and then Kohli</span>
<span>relativeBatsmanSR</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic5-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic5-2.png" data-orig-size="1344,960" data-image-title="pic5-2" data-comments-opened="1" class="wp-image-5356" data-recalc-dims="1" data-attachment-id="5356" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic5-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic5-2.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic5-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic5-2.png?w=450&ssl=1"></a></p>
<pre><code><span>relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic5-3-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic5-31.png" data-orig-size="1344,960" data-image-title="pic5-3" data-comments-opened="1" class="wp-image-5357" data-recalc-dims="1" data-attachment-id="5357" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic5-3-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic5-31.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic5-31.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic5-31.png?w=450&ssl=1"></a></p>
</div>
<div>
<h1>7. Top Indian batsmen against England in England</h1>
<p>The top Indian batmen’s performances against England are shown below</p>
<ol>
<li>Rahul Dravid</li>
<li>Dilip Vengsarkar</li>
<li>Rahul Dravid</li>
<li>Sourav Ganguly</li>
<li>Virat Kohli</li>
</ol>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/tendulkarVsEngInEng.csv&quot;</span>,<span>&quot;./data/dravidVsEngInEng.csv&quot;</span>,<span>&quot;./data/vengsarkarVsEngInEng.csv&quot;</span>,
               <span>&quot;./data/gangulyVsEngInEng.csv&quot;</span>,<span>&quot;./data/gavaskarVsEngInEng.csv&quot;</span>,<span>&quot;./data/kohliVsEngInEng.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;S Tendulkar&quot;</span>,<span>&quot;R Dravid&quot;</span>,<span>&quot;D Vengsarkar&quot;</span>,<span>&quot;S Ganguly&quot;</span>,<span>&quot;S Gavaskar&quot;</span>,<span>&quot;V Kohli&quot;</span><span>)</span></code></pre>
<p>Rahul Dravid has the best performance against England and edges out Tendulkar. He is followed by Tendulkar and then Sourav Ganguly. Note:Incidentally Virat Kohli’s performance against England in England so far has been extremely poor and he averages around 13-15 runs per innings. However he has a long way to go and I hope he catches up. In any case it will be an uphill climb for Kohli in England.</p>
<pre><code><span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic6-1-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic6-11.png" data-orig-size="941,672" data-image-title="pic6-1" data-comments-opened="1" class="wp-image-5374" data-recalc-dims="1" data-attachment-id="5374" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic6-1-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic6-11.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic6-11.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic6-11.png?w=450&ssl=1"></a><img></p>
<pre><code><span>#Tendulkar, Ganguly and Dravid have the best strike rate and in that order.</span>
<span>relativeBatsmanSR</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic6-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic6-2.png" data-orig-size="1344,960" data-image-title="pic6-2" data-comments-opened="1" class="wp-image-5360" data-recalc-dims="1" data-attachment-id="5360" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic6-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic6-2.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic6-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic6-2.png?w=450&ssl=1"></a></p>
<pre><code><span>relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic6-3/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic6-3.png" data-orig-size="941,672" data-image-title="pic6-3" data-comments-opened="1" class="wp-image-5361" data-recalc-dims="1" data-attachment-id="5361" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic6-3/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic6-3.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic6-3.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic6-3.png?w=450&ssl=1"></a></p>
<div></div>
<div>
<h2>8. Top Indian batsmen against West Indies in West Indies</h2>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/tendulkarVsWInWI.csv&quot;</span>,<span>&quot;./data/dravidVsWInWI.csv&quot;</span>,<span>&quot;./data/vvslaxmanVsWIInWI.csv&quot;</span>,
               <span>&quot;./data/gavaskarVsWIInWI.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;S Tendulkar&quot;</span>,<span>&quot;R Dravid&quot;</span>,<span>&quot;VVS Laxman&quot;</span>,<span>&quot;S Gavaskar&quot;</span><span>)</span></code></pre>
<p>Against the West Indies Sunil Gavaskar is heads and shoulders above the rest. Gavaskar has a very impressive cumulative average against West Indies</p>
<pre><code><span>relativeBatsmanCumulativeAvgRuns</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic7-1/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic7-1.png" data-orig-size="941,672" data-image-title="pic7-1" data-comments-opened="1" class="wp-image-5362" data-recalc-dims="1" data-attachment-id="5362" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic7-1/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic7-1.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic7-1.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic7-1.png?w=450&ssl=1"></a></p>
<pre><code><span># VVS Laxman followed by  Tendulkar &amp; then Dravid have a very # good strike rate against the West Indies
relativeBatsmanCumulativeStrikeRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic7-3/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic7-3.png" data-orig-size="941,672" data-image-title="pic7-3" data-comments-opened="1" class="wp-image-5363" data-recalc-dims="1" data-attachment-id="5363" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic7-3/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic7-3.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic7-3.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic7-3.png?w=450&ssl=1"></a></p>
</div>
</div>
<div>
<h1>9. World’s best spinners on tracks suited for pace &amp; bounce</h1>
<p>In this part I compare the performances of the top 3 spinners in recent years and check out how they perform on surfaces that are known for pace, and bounce. I have taken the following 3 spinners</p>
<ol>
<li>Anil Kumble (India)</li>
<li>M Muralitharan (Sri Lanka)</li>
<li>Shane Warne (Australia)</li>
</ol>
<pre><code><span>#kumbleEng=getPlayerData(30176 ,opposition=3,host=3,file=&quot;kumbleVsEngInEng.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#muraliEng=getPlayerData(49636 ,opposition=3,host=3,file=&quot;muraliVsEngInEng.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#warneEng=getPlayerData(8166 ,opposition=3,host=3,file=&quot;warneVsEngInEng.csv&quot;,type=&quot;bowling&quot;)</span></code></pre>
</div>
<div>
<h1>10. Top international spinners against England in England</h1>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/kumbleVsEngInEng.csv&quot;</span>,<span>&quot;./data/muraliVsEngInEng.csv&quot;</span>,<span>&quot;./data/warneVsEngInEng.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Anil KUmble&quot;</span>,<span>&quot;M Muralitharan&quot;</span>,<span>&quot;Shane Warne&quot;</span><span>)</span></code></pre>
<p>Against England and in England, Muralitharan shines with a cumulative average of nearly 5 wickets per match with a peak of almost 8 wickets. Shane Warne has a steady average at 5 wickets and then Anil Kumble.</p>
<pre><code><span>relativeBowlerCumulativeAvgWickets</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic8-1-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic8-11.png" data-orig-size="1344,960" data-image-title="pic8-1" data-comments-opened="1" class="wp-image-5365" data-recalc-dims="1" data-attachment-id="5365" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic8-1-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic8-11.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic8-11.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic8-11.png?w=450&ssl=1"></a></p>
<pre><code><span># The order relative cumulative Economy rate, Warne has the best figures,followed by Anil Kumble. Muralitharan</span>
<span># is much more expensive.</span>
<span>relativeBowlerCumulativeAvgEconRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic8-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic8-2.png" data-orig-size="941,672" data-image-title="pic8-2" data-comments-opened="1" class="wp-image-5366" data-recalc-dims="1" data-attachment-id="5366" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic8-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic8-2.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic8-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic8-2.png?w=450&ssl=1"></a><img></p>
</div>
<div>
<h1>11. Top international spinners against South Africa in South Africa</h1>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/kumbleVsSAInSA.csv&quot;</span>,<span>&quot;./data/muraliVsSAInSA.csv&quot;</span>,<span>&quot;./data/warneVsSAInSA.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;Anil Kumble&quot;</span>,<span>&quot;M Muralitharan&quot;</span>,<span>&quot;Shane Warne&quot;</span><span>)</span></code></pre>
<p>In South Africa too, Muralitharan has the best wicket taking performance averaging about 4 wickets. Warne averages around 3 wickets and Kumble around 2 wickets</p>
<pre><code><span>relativeBowlerCumulativeAvgWickets</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic9-1/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic9-1.png" data-orig-size="941,672" data-image-title="pic9-1" data-comments-opened="1" class="wp-image-5367" data-recalc-dims="1" data-attachment-id="5367" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic9-1/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic9-1.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic9-1.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/03/pic9-1.png?w=450&ssl=1"></a></p>
<pre><code><span># Muralitharan is expensive in South Africa too, while Kumble and Warne go neck-to-neck in the economy rate.</span>
<span># Kumble edges out Warne and has a better cumulative average economy rate</span>
<span>relativeBowlerCumulativeAvgEconRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic9-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic9-2.png" data-orig-size="941,672" data-image-title="pic9-2" data-comments-opened="1" class="wp-image-5369" data-recalc-dims="1" data-attachment-id="5369" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic9-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic9-2.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic9-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/03/pic9-2.png?w=450&ssl=1"></a></p>
</div>
<div>
<h1>11. Top international pacers against India in India</h1>
<p>As a final analysis I check how the world’s pacers perform in India against India. India pitches are supposed to be flat devoid of bounce, while being terrific turners. Hence Indian pitches are more suited to spin bowling than pace bowling. This is changing these days.</p>
<p>The best performers against India in India are mostly the deadly pacemen of yesteryears</p>
<p>For this I have chosen the following bowlers</p>
<ol>
<li>Courtney Walsh (West Indies)</li>
<li>Andy Roberts (West Indies)</li>
<li>Malcolm Marshall</li>
<li>Glenn McGrath</li>
</ol>
<pre><code><span>#cawalshInd=getPlayerData(53216 ,opposition=6,host=6,file=&quot;cawalshVsIndInInd.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#arobertsInd=getPlayerData(52817 ,opposition=6,host=6,file=&quot;arobertsIndInInd.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#mmarshallInd=getPlayerData(52419 ,opposition=6,host=6,file=&quot;mmarshallVsIndInInd.csv&quot;,type=&quot;bowling&quot;)</span>
<span>#gmccgrathInd=getPlayerData(6565 ,opposition=6,host=6,file=&quot;mccgrathVsIndInInd.csv&quot;,type=&quot;bowling&quot;)</span></code></pre>
<pre><code><span>frames</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;./data/cawalshVsIndInInd.csv&quot;</span>,<span>&quot;./data/arobertsIndInInd.csv&quot;</span>,<span>&quot;./data/mmarshallVsIndInInd.csv&quot;</span>,
               <span>&quot;./data/mccgrathVsIndInInd.csv&quot;</span><span>)</span>
<span>names</span> <span>&lt;-</span> <span>list</span><span>(</span><span>&quot;C Walsh&quot;</span>,<span>&quot;A Roberts&quot;</span>,<span>&quot;M Marshall&quot;</span>,<span>&quot;G McGrath&quot;</span><span>)</span></code></pre>
<p>Courtney Walsh has the best performance, followed by Andy Roberts followed by Andy Roberts and then Malcom Marshall who tips ahead of Glenn McGrath</p>
<pre><code><span>relativeBowlerCumulativeAvgWickets</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic10-1/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic10-1.png" data-orig-size="941,672" data-image-title="pic10,-1" data-comments-opened="1" class="wp-image-5370" data-recalc-dims="1" data-attachment-id="5370" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic10-1/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic10-1.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic10-1.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic10-1.png?w=450&ssl=1"></a></p>
<pre><code><span>#On the other hand McGrath has the best economy rate, followed by A Roberts and then Courtney Walsh</span>
<span>relativeBowlerCumulativeAvgEconRate</span><span>(</span><span>frames</span>,<span>names</span><span>)</span></code></pre>
<p><img><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic10-2/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/03/pic10-2.png" data-orig-size="941,672" data-image-title="pic10,-2" data-comments-opened="1" class="wp-image-5371" data-recalc-dims="1" data-attachment-id="5371" data-permalink="https://gigadom.wordpress.com/2017/03/11/cricketr-flexes-new-muscles-the-final-analysis/pic10-2/" alt="" data-medium-file="https://gigadom.files.wordpress.com/2017/03/pic10-2.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic10-2.png?w=450&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/03/pic10-2.png?w=450&ssl=1"></a></p>
<div>
<h3>12. ODI performance of a player against a specific country in the host country</h3>
<p>This gets the data for MS Dhoni in ODI matches against Australia and in Australia</p>
<pre><code><span>#dhoniAusODI=getPlayerDataOD(28081,opposition=2,host=2,file=&quot;dhoniVsAusInAusODI.csv&quot;,type=&quot;batting&quot;)</span></code></pre>
</div>
<div>
<h3>13. Twenty 20 performance of a player against a specific country in the host country</h3>
<pre><code><span>#dhoniAusTT=getPlayerDataOD(28081,opposition=2,host=2,file=&quot;dhoniVsAusInAusTT.csv&quot;,type=&quot;batting&quot;)</span></code></pre>
</div>
<div>
<p>All the ODI and Twenty20 functions of cricketr can be used on the above dataframes of MS Dhoni.</p>
<h3>Some key observations</h3>
<p>Here are some key observations</p>
<ol>
<li>At the top of the batting spectrum is Don Bradman with a very impressive average 100-120 in matches played in England and Australia. Unfortunately there weren’t matches he played in other countries and different pitches. 2.Viv Richard has the best cumulative strike rate overall.</li>
<li>Muralitharan strikes more often than Kumble or Warne even in pitches at ENgland, South Africa and West Indies. However Muralitharan is also the most expensive</li>
<li>Warne and Kumble have a much better economy rate than Muralitharan.</li>
<li>Sunil Gavaskar has an extremely impressive performance in West Indies.</li>
<li>Rahul Dravid performs much better than Tendulkar in both England and West Indies.</li>
<li>Virat Kohli has the best performance against Australia so far and hope he maintains his stellar performance followed by Sehwag. However Kohli’s performance in England has been very poor</li>
<li>West Indies batsmen and bowlers seem to thrive on Indian pitches, with Clive Lloyd and Alvin Kalicharan at the top of the list.</li>
</ol>
<p>You may like my Shiny apps on cricket</p>
<ol>
<li><a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/inswingerFinal/">Inswinger- Analyzing International. T20s</a></li>
<li><a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/googlyPlus/">GooglyPlus – An app for analyzing IPL</a></li>
<li><a target="_blank" rel="nofollow" href="https://www.shinyapps.io/admin/#/application/71228">Sixer – App based on R package cricketr</a></li>
</ol>
<p>Also see</p>
<ol>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/06/05/exploring-quantum-gate-operations-with-qcsimulator/">Exploring Quantum Gate operations with QCSimulator</a></li>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/01/21/neural-networks-the-mechanics-of-backpropagation/">Neural Networks: The mechanics of backpropagation</a></li>
<li><a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/05/14/re-introducing-cricketr-an-r-package-to-analyze-performances-of-cricketers/">Re-introducing cricketr! : An R package to analyze performances of cricketers</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/2017/02/18/cricketr-and-yorkr-books-paperback-now-in-amazon/">cricketr and yorkr books – Paperback now in Amazon</a></li>
<li> <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2011/10/12/hand-detection-through-haartraining-a-hands-on-approach/">Hand detection through Haartraining: A hands-on approach</a></li>
</ol>
<p>To see all my posts see <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/aa-2/">Index of posts</a></p>
</div>
</div>
</div>
<div></div>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gigadom.wordpress.com/5335/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/gigadom.wordpress.com/5335/" 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>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/K_F3Rp6SA8Q">