Alan Yeung
Home
Bio
Posts
Projects
Publications
Contact
Blogroll
Upwork
Posts
Trying out timeplyr
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 …
Dec 3, 2023
5 min read
R
Grouped Sequences in dplyr Part 2
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 …
Nov 7, 2023
4 min read
R
Grouped Sequences in dplyr
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 …
Nov 5, 2023
3 min read
R
A couple of case_when() tricks
Combining case_when() and across() If you want to use case_when() and across() different variables, then here is an example that can do …
Oct 9, 2023
2 min read
R
Summarising Dates with Missing Values
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 …
Oct 2, 2023
2 min read
R
Rafa 21 Grand Slams and gganimate
I’ve been a Nadal fan for a long time – right back to the days of the pirate-pants so yeah, really a long time. In all this time, Rafa …
Feb 13, 2022
8 min read
R
,
Personal
Filtering with string statements in dplyr
A question came up recently at work about how to use a filter statement entered as a complete string variable inside dplyr’s filter() …
May 13, 2020
2 min read
R
Updating packages on a drat repo
This is just a small note (mainly for myself but hopefully may be of some use to a few others!) to remind of how to update a package on …
May 3, 2020
1 min read
R
Scotland's Most Popular Babynames
Downloading the data Shiny App I recently saw this great post on Nathan Yau’s FlowingData website which guesses a person’s name based …
Jan 25, 2020
4 min read
R
Trying the ckanr Package
How resources are grouped in CKAN Initialising ckanr and exploring groups of resources Connect to CKAN with dplyr and download from one …
Nov 12, 2019
8 min read
R
»
Cite
×