Week 1

Round 1 Well we’re back with an exciting start to the new season. Manchester United turned in their best performance in years and Huddersfield had a dream return to the top tier. Some things remain the same though with Dele Alli conning Shelvey into a dismissal and Liverpool conceding from corners Game of the Week Arsenal and Leicester swapping blows with the Gunners emerging victorious

Read more

Share Comments

EPL 2017/18

With the new Premier League season kicking off, I plan to produce plenty of posts over the coming months I have yet to organize it all but the idea is to present tables and charts without embedded code. Hopefully, I will get around to publishing it on Github So let’s start of with a couple of different areas of interest

Starting survivors 220 keen players will start the season - but how often does the Game one starting lineup reflect who plays most for the team throughout the season?

Read more

Share Comments

StatCan API's Discovered

My last post was a first look at StatCan data which highlighted that there was a lot of data available but that it was not necessarily easily available or perfectly presented Since then (and apologies where due), I have come across a couple of APIs First-off, StatCan do have a developers page one of which provides access to hundreds of indicators in JSON format.

Read more

Share Comments

Bournemouth to bash on?

I have plans to hive off the soccer/football section off to a separate blog as many sports readers will not be interested in code but until then, here is my latest effort As the new season is now upon us it was time to post a new article. I have also been intending to pen something based around James Curley’s excellent engsoccerdata package which anyone interested in R and European football should definitely check out

Read more

Share Comments

Pimping the StatCan Blog

Statistics Canada make available masses of useful data from Censuses and Surveys. One way they communicate is via twitter e.g. library(blogdown) shortcode("tweet", "891757886011002883") In 2001, 31% of young adults (aged 20 to 34) were still living with their parents. Any change in 2016? Stay tuned! https://t.co/lUMBplYJWW pic.twitter.com/4CA3DvhuNw — Statistics Canada (@StatCan_eng) July 30, 2017 Since January 2013 have also issued monthly blog posts covering a wide range of social and economic matters of interest

Read more

Share Comments

When Babe Ruth met Kandinsky

When Babe Ruth first retired from baseball he found it tough. Without the protection of the Yankees PR department his various, and widespread, indiscretions were fodder for the yellow press and the reluctance of anyone to give him a managerial position was humiliating So he became a virtual recluse mainly fly-fishing, painting water-colours and studying the lives of contemporary artists. It was during the late 1930’s that he discovered that his favourite painter, Wassily Kandinsky, was alive and living in France.

Read more

Share Comments

Automated congratulatory tweet to Twitter Friends

On the front page of my premiersoccerstats site, I have a Player Milestones table which highlights players who have reached certain levels in the Premier League’s latest round of games e.g. 100 Appearances This requires comparing two datasets and subsetting the rows with differences in the variable of interest. To this end, I use the daff package which was the subject of a presentation at the recent R User 2017 conference

Read more

Share Comments

User2017- padr package example

Of course, it is not the same as actually being there, but as a good fall-back the videos of the talks for the R User 2017 conference are now available on channel 9. I’ll be dipping into them over the next few weeks and reporting on any I find of interest. Let’s kick-off with the padr package from Edwin Thoen. It is on CRAN

Read more

Share Comments

Weather plots for any US location

Over the past week or so, there has been quite the buzz about the ggjoy package from Claus Wilkie As he states

Joyplots are partially overlapping line plots that create the impression of a mountain range. They can be quite useful for visualizing changes in distributions over time or space. The name “joyplot” was proposed by Jenny Bryan on Twitter on April 24, 2017, in reference to the iconic cover art for Joy Division’s album Unknown Pleasures.

Read more

Share Comments

Mapping Eurostat information Part 1

Keeping up with the theme of utilizing official government open data to map via an R package I will now turn to the eurostat package which accesses data - via an API - from the European Commission. First released in 2015, there is an article (wuth R code) by its authors in the most recent issue of the R Journal,91 which makes for an interesting read covering a variety of topics

Read more

Share Comments