(WIP:) A self-made function repository for common R functions and packages used day to day.
This has been a long time coming. I have spent far too much time searching through new and old scripts to find that one function I used to solve a specific problem. Even as recently as the end of 2021 I spent three hours searching for specific lines of codes so I could solve the same problem for a new piece of work. No more!
It had been on my mind for quite some time to create a simple repository of common functions I use aswell as more bespoke functions. Atleast then they are all in one place so I can work more efficiently.
In addition, in my work-area there are freqeunt new joiners. I am actively sharing best practice demonstrating useful R packages and code. I hope to encourage more wide-spread use of coding, automation and R for which I hope this repository can help with.
I observe the relucatance to move away from excel to learning R. I was the same until I was forced and now I love coding. I wish I had something similar when I first started as this would have saved me many hours of my life on stack overflow!
This is an on-going project - so not all functions or files have been created.
- Tidyverse - Data wrangling, exploration, cleaning, transformations - the package I use daily for everything.
- Openxlsx - Automation of spreadsheet outputs. Don't fancy saving and formatting a dozen spreadsheets at a time? Learn openxlsx.
- Janitor - Write clean, concise and smart code using simple functions which will improve coding efficiency.
- Stringr - String manipulaiton made easy.
- loops&lists - loop and store data easily enabling simple automation of repetative tasks.
- Functions - in order to write cleaner, more powerful and concise code; utiluse funcitons.
- Officer - Scrape data from MS Word and PowerPoint documents.
- ggplot2 - Easily create aesthetic visualisations in R.
- dygraph - Good looking interactive time-series plots made easy.
- webscrape - Web-scraping in R can be easy using rvest.
- data.table - handle and wrangle very large data sets efficently.
- pdftools - scrape data from pdf files and save yourself time copy and pasting.
- plotly - alternative to ggplot for interactive charts and different aesthetics
- purrr - functional programming made easier
- ggiraph - good looking interactive ggplots
- ggbump - easy to make bump charts to highlight changes in group values over time
- gt - create accessible tables for reports and shiny apps easily !