What’s New in R: October 7, 2024
Welcome to this week’s edition of What’s New in R! This week, we’re featuring a utility package for enhancing {gt} tables, a tutorial on extracting metadata from filenames, and an update to the popular {patchwork} package for combining plots. Let’s dive in!
{gtUtils}
This new package by Andrew Weatherman provides a set of additional themes and functions for the {gt} package. With it, you can make your tables look like those made by the English Premier League, tweak formatting using several helper functions, combine multiple tables, and more.
Filenames to variables
Ever received data that has metadata embedded in the file name? I’m talking data_sep_2024.xlsx
. How can you get the metadata from the filename and add it as a variable in the data frame you get from importing the data? In this blog post, Luis D. Verde Arregoitia walks through the process of dealing with data like this.
patchwork 1.3.0
{patchwork} is my go-to package for combining multiple plots (though I still love you, {cowplot}). In this announcement post for version 1.3, {patchwork} developer Thomas Lin Pedersen talks about what’s new in the package. The biggest item for me is the ability to combine plots and {gt} tables.
If you enjoyed this issue of What’s New In R, please share it with a friend! And if they want to get What’s New in R directly in their inbox, they can sign up on the R for the Rest of Us website.
Got any ideas for resources I should feature in future issues of What’s New in R? Leave a comment below!
Sign up for the newsletter
Get blog posts like this delivered straight to your inbox.
You need to be signed-in to comment on this post. Login.