Promoting the use of R in the NHS

Learn R

A simple function to install and load packages in R

I was starting to despair at the amount of packages I end up using during the task of transforming, cleaning, […]

How to extrapolate data from data

There are many occasions when a column of data needs to be created from an already existing column for ease […]

Evolution of the R user

      Adapted from source: The beginning My journey with R began when a colleague of mine said […]

Even Simpler SQL

I’ve had some feedback on the last post, and rather than repeat the same thing multiple times, I’m going all @drob, […]

Keep data tidy: A plea to data publishers and developers

knitr::opts_chunk$set(echo = TRUE, message = FALSE, cache = TRUE, warning = FALSE) if(!require("pacman")) install.packages("pacman") library(pacman) p_load(readxl, tidyverse, corrplot, tmap, geojsonio, […]

simpler SQL with dplyr

comparing dplyr with SQL nested queries Following on from my last post, where I demonstrated R to some first time […]

Violin and density plots in ggplot2

Violin Plots This chart is a combination of a Box Plot and a Density Plo that is rotated and placed on each side, […]

Pareto Chart in ggplot2

Background of Pareto Charts A Pareto chart, named after Vilfredo Pareto, is a type of chart that contains both bars and a line graph, where individual […]

Histogram with auto binning in ggplot2

Histograms (with auto binning) Again, we will use the mtcars dataset and use the fields in that to produce the […]

Diverging Dot Plot and Lollipop Charts – Plotting Variance with ggplot2

Creating the Dot Plot Variance chart The data preparation was used in the previous blog entitled: Diverging Bar Charts – Plotting […]

Diverging Bar Charts – Plotting Variance with ggplot2

Diverging Bar Charts The aim here is to create a diverging bar chart that shows variance above and below an […]

R studio shortcuts

I love keyboard shortcuts. I work in R studio and using keyboard shortcuts has saved me a lot of time. […]

The :: operator

Namespace issues Most of the functionality in R comes from additional packages that you load. Sometimes two packages will have […]

Importing and exporting Data

This blog originally appeared in   There are a large number of file types that are able to store […]

Upgrading R – version 3.5.0

A new version of R (version 3.5.0) has just been released. Windows users can upgrade R by using the installr […]

Aiming for a wrangle-free (or reduced) world

I work as a Data Scientist at Public Health England. I am part of a small team that have a […]

R Tip: A simple workflow in R

Organising your work on a computer is crucial. Here is a simple, but effective, workflow that might also work for […]

The joy of R

Hello. My name is Julian and I am an R addict. I got hooked about 3 years ago when I […]

R-Tip: Copy and paste data from/to Excel

Whilst there are a suite of libraries for importing/exporting data to/from R (the newest arrival is readit which makes it […]