Skip to content

A substitute for plyr’s mapvalues

Posted 7th April 2025

No comments

The mapvalues() function in plyr was immensely useful, but with plyr’s retirement, it’s time to move on and find something better.

Read the full story...

Installing RStudio in WSL2

Posted 22nd July 2024

No comments

Installing RStudio within the Windows Subsystem for Linux was not as simple as expected, once I started installing packages in R. Here’s my procedure for getting it all to work seamlessly.

Read the full story...

R logo

Export an R data frame into a formatted Excel sheet

Posted 22nd March 2024

No comments

A straightforward method for exporting an R data frame to a formatted Excel workbook.

Read the full story...

R logo

Connect an RStudio project to Github

Posted 23rd March 2022

No comments

Use GitHub to back-up your R projects within RStudio and ensure you maintain version control.

Read the full story...

R logo

Changing date formats in R

Posted 21st June 2021

No comments

Dates come in all sorts of formats, but R generally prefers dates in the format YYYY-MM-DD. Here’s a quick method to convert date formats in R.

Read the full story...

R logo

Cumulative totals by group in R

Posted 4th June 2021

No comments

Use Tidyverse’s dplyr package in R to add cumulative totals to a table based on group.

Read the full story...

R logo

Tips for cleaning-up an R session

Posted 29th May 2021

No comments

Sometimes one just needs a “clean slate” in R, particularly when using R Studio. Here are my quick tips for cleaning up an R session in R Studio:

Read the full story...

R logo

Rescaling Data in R

Posted 23rd September 2019

No comments

A simple methodology for rescaling multiple series of data via min-max normalisation in R, then plotting.

Read the full story...

R logo

Changing the default library folder path in R

Posted 30th November 2017

6 comments

A simple procedure in Microsoft Windows for setting the default library folder for installations of R.

Read the full story...

R logo

Resolving ‘Unable to move temporary installation’ in R

Posted 29th November 2017

32 comments

A simple solution to overcoming the “Unable to move temporary installation” fault when installing packages in R

Read the full story...