Promoting the use of R in the NHS

Learn R

NHS Number Validation

NHS Numbers – the backbone of the NHS NHS Numbers are the best. They are numbers that follow you through […]

How R changed me as an analyst

I suspect there are many blogs about R and why it’s so great: It’s free! It’s open source! There’s a […]

Dygraphs

Dygraphs for mortality surveillance I recently presented some of the mortality surveillance charts we use to @RLadiesLondon (a very welcoming group!) and […]

Exact Matching in R

Exact matching in R: a case study of the health and care costs associated with living alone, using linked data […]

Count of working days function

It’s at this time of year I need to renew my season ticket and I usually get one for the […]

SQL Server Database connections in R

Getting data into R One of the things I found most difficult when learning R was getting data from our SQL Servers […]

Introduction to Funnel Plots

Funnel plots Funnel plots are a common tool for comparing organisations or units using proportions or standardised rates. A common […]

rforhealthcare.org – A free online resource for all your R related healthcare needs

Down in the South West of England we at the PenCHORD team of the NIHR CLAHRC South West Peninsula have […]

Format ONS spreadsheet

Background A Public Health consultant colleague Ian Bowns (@IantheBee) created a report to monitor mortality within the Trust and he […]

Using R to track NHS winter pressures

Every Thursday during winter, roughly from December to March, NHS Digital releases a week’s worth of hospital performance data, known as […]

Animating a Graph Over Time in Shiny

                        I was interested in creating an animated graph […]

A run chart is not a run chart is not a run chart

Understanding variation using runs analysis Run charts are simple and powerful tools that help discriminate between random and non-random variation […]

A simple function to create nice correlation plots

The problem I was working with a dataset where I wanted to assess the correlation of different variables in R. […]

From script-based development to function-based development and onwards to Package Based development: part 2

At the NHS R Conference, I suggested to people that they should embrace the idea of package-based development rather than […]

Roadmap to collaborative working using R in the NHS: Part I- Workflows

We finally have a tool that is data independent. R allows the scripting of a data science methodology that we […]

From script-based development to function-based development and onwards to Package Based development

At the NHS R Conference, I suggested to people that they should embrace the idea of package-based development rather than […]

Installing R and R studio

Installation Instructions (Part 1 of 2) Windows Users To Install R: Open an internet browser and go to r-project.org. Click the […]

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: https://www.r-project.org/logo/ 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, […]