Recent Posts

The timeplyr R package, created by my colleague Nick, was accepted on CRAN in October 2023. A direct quote from the CRAN page is that …

I just wrote a post about grouped sequences in dplyr and following that, I’ve been made aware of another couple of solutions to this …

For a piece of work I had to calculate the number of matches that a team plays away from home in a row, which we will call …

Combining case_when() and across() If you want to use case_when() and across() different variables, then here is an example that can do …

This blog post is just a note that when you try to do a grouped summary of a date variable but some groups have all missing values, it …

Projects

*

R Training Resources and Tips

A short list of resources and tips to help with learning some R basics, with particular focus on the tidyverse.

phstemplates

An R package containing standard templates for use by Public Health Scotland.

objectremover RStudio Addin

An RStudio addin to assist with removing objects from the global environment. Features include removing objects according to name patterns and object type.

Recent & Upcoming Talks

A quick summary and demo of my experience of using the redoc package.