In theory, theory and practice are the same. In practice, they’re not.
There are two ways to write error-free programs; only the third one works.
Simplicity does not precede complexity, but follows it.
Talk is cheap. Show me the code.
This post is the 4th and the last part of yorkr padding for the Twenty20s. In this post I look at the top individual batting and bowling performances in the Twenty20s. Also please take a look at my 3 earlier post on yorkr’s handling of Twenty20 matches
- yorkr pads up for the Twenty20s: Part 1- Analyzing team“s match performance .
- yorkr pads up for the Twenty20s: Part 2-Head to head confrontation between teams
- yorkr pads up for the Twenty20s:Part 3:Overall team performance against all oppositions!
The 1st part included functions dealing with a specific T20 match, the 2nd part dealt with functions between 2 opposing teams in T20 confrontations. The 3rd part dealt with functions between a team and all T20 matches with all oppositions. This 4th part includes individual batting and bowling performances in T20 matches and deals with Class 4 functions.
You can clone/fork the code for the package yorkr from Github at yorkr-package
The list of Class 4 functions are shown below.The Twenty20 features will be available from yorkr_0.0.4
- batsmanCumulativeAverageRuns (yorkr_0.0.3)
- batsmanCumulativeStrikeRate (yorkr_0.0.3)
- bowlerCumulativeAvgWickets (yorkr_0.0.3)
- bowlerCumulativeAvgEconRate (yorkr_0.0.3)
Note: The yorkr package in its current avatar only supports ODI & Twenty20 matches. I will be upgrading the package to handle IPL in the months to come.
library(yorkr) library(gridExtra) library(rpart.plot) library(dplyr) library(ggplot2) rm(list=ls())
转载本站任何文章请注明：转载至神刀安全网，谢谢神刀安全网 » yorkr pads up for Twenty20s:Part 4- Individual batting and bowling performances!