Blog Archives

Of Sixes and Fours – Analyzing the IPL using the tidyverse

June 26, 2019
By
Of Sixes and Fours – Analyzing the IPL using the tidyverse

We are back with another post on the Indian Premier League. This is the fourth post in the series. We will assume that you have already read the previous article analyzing strike rates here. One change since the last article is that Cricsheet now has updated data available - so we have the details of all matches played up...

Read more »

Shiny application (with modules) – Saving and Restoring from RDS

June 22, 2019
By

I am working on a Shiny application which allows the user to upload data, do some analysis and processing on each variable in the data, and finally use the processed variables to build a statistical model. As there may be hundreds of variables in the data, the user may want to process only a few variables in one sitting...

Read more »

Fun with Statistics – Is Usain Bolt really the fastest man on earth?

May 17, 2019
By
Fun with Statistics – Is Usain Bolt really the fastest man on earth?

If you search for the phrase “fastest man on earth” in Google, chances are that it will return the answer “Usain Bolt”. It certainly does so for me, even though the results might be different if Google decides to personalize the results for you. This is because currently he holds the world record for being the quickest (9.58s) to...

Read more »

Easily explore your data using the summarytools package

May 10, 2019
By
Easily explore your data using the summarytools package

Whenever we start working with data with which we are not familiar, our first step is usually some kind of exploratory data analysis. We may look at the structure of the data using the str function, or use a tool like the RStudio Viewer to examine the data. We might also use the base R function summary or the...

Read more »

Analysing Strike Rates in the IPL using the tidyverse

April 5, 2019
By
Analysing Strike Rates in the IPL using the tidyverse

In this article, we analyse the strike rates of the top batsmen in the Indian Premier League. We will use the tidyverse packages for the analysis, primarily dplyr and ggplot2. The code for all the data processing and analysis can be found in this Github repo. We will be using data from Cricsheet. Unfortunately, the data is only available till 2017...

Read more »

R Vocabulary – Part 4

March 6, 2019
By
R Vocabulary – Part 4

This is the fourth and final part in the series of articles on R vocabulary. In this series, we explore most of the functions mentioned in Chapter 2 of the book Advanced R. The first, second and third part of the series can be read here, here and here. In this article, we explore most of the functions mentioned under...

Read more »

R Vocabulary – Part 3

February 11, 2019
By

This is the third part of the series of articles on R vocabulary. In this series, we explore most of the functions mentioned in Chapter 2 of the book Advanced R. The first part of the series can be read here and the second part of the series can be read here. We start this article by looking at some...

Read more »

R Vocabulary – Part 2

January 25, 2019
By

This is the second part of the series of articles on R vocabulary. In this series, we explore most of the functions mentioned in Chapter 2 of the book Advanced R. The first part of the series can be read here. The keyword function is used to define what is technically a closure in R. It has three components -...

Read more »

R Vocabulary – Part 1

December 22, 2018
By
R Vocabulary – Part 1

To be a proficient R user, you need to read and understand the material in the book Advanced R by Hadley Wickham. The second chapter in this book is on vocabulary - a list of functions from the base, stats and utils packages which all R users should be familiar with. In a series of posts, we will attempt...

Read more »

Exploring R Packages – plyr

December 4, 2018
By

In this post, we explore the functionality provided by the plyr package. The ideas behind this package are described in this paper by Hadley Wickham. However, rather than trying to understand the theoretical underpinnings of the package, we look at some of the useful functions provided by this package and how they work. Anyone using R seriously will have come...

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)