Month July 2022

Moving columns in R with relocate

The relocate() function is a simple but very useful function from the Tidyverse. It allows you to move the position with columns within a data frame. I use this most often where I have been delivered data that is not…