Skip to content

A self-made function repository for common R functions and packages used frequently.

Notifications You must be signed in to change notification settings

tcolwell7/R-repository

Repository files navigation

R-repository

(WIP:) A self-made function repository for common R functions and packages used day to day.

Introduction and purpose

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!

Contents:

This is an on-going project - so not all functions or files have been created.

  1. Tidyverse - Data wrangling, exploration, cleaning, transformations - the package I use daily for everything.
  2. Openxlsx - Automation of spreadsheet outputs. Don't fancy saving and formatting a dozen spreadsheets at a time? Learn openxlsx.
  3. Janitor - Write clean, concise and smart code using simple functions which will improve coding efficiency.
  4. Stringr - String manipulaiton made easy.
  5. loops&lists - loop and store data easily enabling simple automation of repetative tasks.
  6. Functions - in order to write cleaner, more powerful and concise code; utiluse funcitons.
  7. Officer - Scrape data from MS Word and PowerPoint documents.
  8. ggplot2 - Easily create aesthetic visualisations in R.
  9. dygraph - Good looking interactive time-series plots made easy.
  10. webscrape - Web-scraping in R can be easy using rvest.
  11. data.table - handle and wrangle very large data sets efficently.
  12. pdftools - scrape data from pdf files and save yourself time copy and pasting.
  13. plotly - alternative to ggplot for interactive charts and different aesthetics
  14. purrr - functional programming made easier
  15. ggiraph - good looking interactive ggplots
  16. ggbump - easy to make bump charts to highlight changes in group values over time
  17. gt - create accessible tables for reports and shiny apps easily !

About

A self-made function repository for common R functions and packages used frequently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages