Learning R

Buy me a coffeeBuy me a coffee

A gentle crash course in R using tidyverse 🌱

By: Nicholas M. Michalak & Loek Brinkman

What is this?

Description from site: In this three-hour workshop, we introduce you to data science in the R programming language. In particular, we’ll show you how to use the “tidyverse” package to transform, visualize and model data. The workshop consists of short introductory presentations followed by elaborate hands-on sessions. At the end of each section, we’ll showcase more complex features and functionality. The workshop is designed as an introduction to R. Zero programming experience is required. By the end of the workshop, you’ll have a “feel” for what R is and what it can do for you, and we’ll provide resources for follow-up self-study.

  1. Course materials here: https://osf.io/69gub/

A Psychologist’s Guide to R 🌱

By: Sean C. Murphy

Added Fri Apr 28, 2023

What is this?

Description from site: This is a repository containing the course notes and worked examples for a six week course in the R statistical programming language taught at the University of Melbourne, Australia. It is targeted at graduate students and faculty in psychology (and probably other social sciences) with no programming experience, and covers the use of R from the basics up to multilevel modelling, though it is not exhaustive within that range.

  1. Course materials here: https://github.com/seanchrismurphy/A-Psychologists-Guide-to-R

Advanced R 🌳🌳

By Hadley Wickham

What is this?

Excerpt from site: This is the website for 2nd edition of “Advanced R”, a book in Chapman & Hall’s R Series. The book is designed primarily for R users who want to improve their programming skills and understanding of the language. It should also be useful for programmers coming to R from other languages, as it helps you to understand why R works the way it does.

  1. Free web-book here: https://adv-r.hadley.nz/ or http://adv-r.had.co.nz/Introduction.html
  2. Buy book here: Link to Amazon

A-Guided-Tour-of-R 🌱

By Sean Chris Murphy

Added Fri April 28th, 2023

What is this?

Description from site: A self-paced version of an introductory R workshop taught at SPSP 2018. Will probably take 4-10 hours to work through, depending on experience and pacing.

  1. Course materials here: https://github.com/seanchrismurphy/A-Guided-Tour-of-R

An Introduction to R With Hockey Data 🌱

By Meghan Hall

Added Sat Dec, 2021.
What is this?
Excerpt from site: “We’ll go through the steps of downloading and setting up R and then, with the use of a sample hockey data set, learn the very basics of R for exploring and visualizing data”.

  1. Link to post here: https://meghan.rbind.io/blog/r-tutorial/
  2. Link to code and repo here: https://github.com/hockey-graphs/HG_intro_tutorial/blob/master/HG_tutorial_code.R

Beginner’s Guide to R🌱

By Esther Schott

What is this?

A beginner’s guide to R from Basic R, the world of Tidiverse, to even plotting.

  1. Link to OSF files here: https://osf.io/2bfjy/

Changing Global Options with Code

Added Sat Dec 11, 2021
What is this?
Excerpt from site: The {rstudio.prefs} package provides an interface for working with these RStudio JSON preference files to easily make modifications without using the point-and-click option menus. This is particularly helpful when working on teams to ensure a unified experience across machines and utilizing settings for best practices.

  1. Link to site here: https://www.danieldsjoberg.com/rstudio.prefs/index.html

Coding togetheR

By Alistair Bailey

What is this?

Excerpt from site: Coding togetheR is a series of collaborative workshops to teach foundational R coding and data science skills at the University of Southampton in 2019. This book contains the materials covered over eight, two-hour sessions.

  1. Link to web-book here: https://ab604.github.io/docs/coding-together-2019/

COMP/STAT 112 Macalester College 🌱

By Lisa Lendway

Date added: Thu April 15th, 2021

What is this?
Excerpt from the site: This website serves the students who take COMP/STAT 112 at Macalester College taught by Lisa Lendway. Other people interested in learning Data Science skills using R may also be interested in this material!

  1. Link to OSF files here: https://ds112-lendway.netlify.app/

Data Wrangling in the Tidyverse 🌱

By Nick Huntington-Klein

Date added Fri AprMay 5th, 2023

What is this?
Excerpt from the site: This video series covers the basics of data wrangling using the tidyverse, aimed at my data communications class. I assume some very, very basic R background, but really not much.

This is a simplified and adapted version of my data wrangling workshops, which are available in full on my channel for tidyverse (R), data.table (R), and pandas (Python).

  1. Link to videos are here: https://www.youtube.com/watch?v=EOpb3VsWmck
  2. Slides to follow along with the videos are here: https://nickch-k.github.io/DataCommSl...
  3. Code instructor works on in the videos can be found here: https://github.com/NickCH-K/DataCommS...

Efficient R programming 🌱 & 🌳

By Colin Gillespie Robin Lovelace

What is this?

Excerpt from ebook: This book is for anyone who wants to make their R code faster to type, faster to run and more scalable. These considerations generally come after learning the very basics of R for data analysis: we assume you are either accustomed to R or proficient at programming in other languages, although this book could still be of use to beginners

  1. https://bookdown.org/csgillespie/efficientR/

Exploring tidymodels With Hockey Data🌱

By Meghan Hall

Added Sat Dec, 2021.
What is this?
Excerpt from site: “This is a gentle introduction to the tidymodels package (which, like the tidyverse, is actually a collection of packages), and in order to examine various functions and capabilities of those packages, we’ll build two very simple models, using easily available NHL data, and go over a few ways to evaluate them”.

  1. Link to post here: https://meghan.rbind.io/blog/tidymodels-intro/

Fundamentals of R Workshop Materials_🌱

By Elizabeth Page-Gould & Alexander Danvers

What is this?

Excerpt from site: Have you been meaning to start using R for analysis? Have you been wondering how R can make your analysis easier and your research reproducible? We present a practical introduction to R, demonstrating core analyses in psychology research (e.g., ANOVA, regression). We also explain how to manipulate and clean data in R to maintain a precise record of how the data went from raw to analysis-ready. The ideal audience for this workshop is a researcher who has not used R before, has used it briefly and then gone back to SPSS for the final analyses, or who has used R a few times but wants a better grounding in the basics.

  1. Workshop materials here: https://osf.io/a2x7j/
  2. Workshop requested examples here: https://osf.io/a2x7j/wiki/Requested%20Examples/

Forecasting: Principles and Practice

By Rob J Hyndman & George Athanasopoulos

What is this?

Excerpt from e-book here: “This textbook is intended to provide a comprehensive introduction to forecasting methods and to present enough information about each method for readers to be able to use them sensibly.”

  1. Link to ebook here: https://otexts.com/fpp2/

Get R Done | R Stats Tutorials🌱

By Chad C. Williams

What is this?

Excerpt from site: Get R Done is a video series meant to QUICKLY teach you R so that you can run the statistics you need to right now.

  1. Video tutorials here: https://www.youtube.com/playlist?list=PLmNgrNF3pZqg2GPmcIAWDa1A2-cAfbX37

Getting Started with R 💯 🌱

By David Keyes

What is this? Excerpt from site: This free Getting Started with R course is designed to get new users, no matter what’s holding you back, up and running quickly. It takes you step-by-step, helping you download exactly what you need to get started.

In this course, you’ll learn what you need to get up and running with R, including getting R and RStudio set up, working with projects, installing and loading packages, importing and examining data, and more.

  1. Free course here: https://rfortherestofus.com/courses/getting-started/

Getting Started in R – Tinyverse Edition 🌱

By Saghir Bashir and Dirk Eddelbuettel

Added Tue Oct 12, 2021

What is this?
Excerpt from repo: An eight-page pdf guide for “Getting Started in R”. Objective: To create a short guide that gives a quick overview and introduction to R.

  1. Link to repo here: https://github.com/eddelbuettel/gsir-te

Hands-On Programming

By R Garrett Grolemund

What is this?

Excerpt from site: This is the website for “Hands-On Programming with R”. This book will teach you how to program in R, with hands-on examples. I wrote it for non-programmers to provide a friendly introduction to the R language. You’ll learn how to load data, assemble and disassemble data objects, navigate R’s environment system, write your own functions, and use all of R’s programming tools.

  1. Free web-book here: https://rstudio-education.github.io/hopr/
  2. You can buy book here: Link to Amazon

Introduction to data.table 🌱

What is this?

Excerpt from site here: This vignette introduces the data.table syntax, its general form, how to subset rows, select and compute on columns, and perform aggregations by group. Familiarity with data.frame data structure from base R is useful, but not essential to follow this vignette.

  1. Link to site here: https://cran.r-project.org/web/packages/data.table/vignettes/datatable-intro.html
  2. Link to reference semantics here: https://cran.r-project.org/web/packages/data.table/vignettes/datatable-reference-semantics.html

Introduction to dplyr 🌱

What is this?

Excerpt from site here: This document introduces you to dplyr’s basic set of tools, and shows you how to apply them to data frames. dplyr also supports databases via the dbplyr package, once you’ve installed, read vignette(“dbplyr”) to learn more.

  1. Link to site: https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html

Introduction to R for Statistics and Data Science 🌱

By Dr. Kelly Bodwin

What is this?

Excerpt from course: On this site, you will find materials for a full, 8-week, college-level course focused on learning to use R for Data Science and Statistical Analysis.

This course was created by Dr. Kelly Bodwin. The materials shared here are free and open source, and may be shared and adapted under the Creative Commons license.

  1. Link to course here: https://www.adventures-in-r.com/

Intro to R for Biologists 🌱

What is this?

Excerpt from site here: This repository has teaching materials for a hands-on Introduction to R workshop. The workshop will introduce participants to the basics of R and RStudio. RStudio is a tool that provides a user-friendly environment for working with R.

These materials are intended to provide both basic R programming knowledge and its application for increasing efficiency for data analysis.

  1. Link to site here: https://hbctraining.github.io/Intro-to-R/lessons/07_ggplot2.html
  2. Link to repo here: https://github.com/hbctraining/Intro-to-R

Just Enough R 🌱

What is this?

Excerpt from e-book here: R makes it easy to work with and learn from data.

It also happens to be a programmming language, but if you’re reading this, that might not be of interest. That’s OK — the goal here is not to teach programming1. The goal is to teach you just enough R to be confident to explore your data.

This book uses R like any other statistics software: To work-with and visualize data, run statistical analyses, and share our results with others. To do that you don’t need more than the absolute basics of the R language itself.

  1. Link to ebook here: https://benwhalley.github.io/just-enough-r/

Kingdom of NewbR: An introduction to R🌱

By Damie Pak (@pakdamie)

What is this?

Excerpt from the twitter launching interactive site: I finished a silly beginner #rstats tutorial I started during the pandemic. You are a traveler in a fantastical kingdom of NewbR. It’s interactive and the project was for me to learn how to use learnR

  1. Link to interactive site here: https://dpak.shinyapps.io/LEARNR/

Learning R with Hockey Data and learnr 🌱

By Meghan Hall

Added Sat Dec, 2021.
What is this?
Excerpt from site: “I’ve created two tutorials in learnr, one that is a true introduction for beginners (focused on the tidyverse) and one that goes a little bit deeper into data manipuation with pivoting and joining data. These tutorials (screenshot below) live in a package I created called betweenthepipes”.

  1. Link to post here: https://meghan.rbind.io/blog/learnr/
  2. Link to Github repo here: https://github.com/meghall06/betweenthepipes/blob/master/README.md

List of classes for learning R

By Justin Post

What is this?

Excerpt from site here: Here is a list of classes by Justin Post in the Department of Statistics at North Carolina State University.

  1. Link for the INTRODUCTION TO R FOR DATA SCIENCE here: https://www4.stat.ncsu.edu/~post/DataScienceR/
  2. Link for the INTERMEDIATE PROGRAMMING IN R here: https://www4.stat.ncsu.edu/~post/ProgrammingR/
  3. Link for the ADVANCED R: AUTOMATING WORKFLOW & SHARING WORK here: https://www4.stat.ncsu.edu/~post/IntermediateR/🌳🌳

Modelling and visualizing data using R: A practical introduction

By Daniel Nettle

What is this?

Excerpt from site: This is a basic overview of using R for data analysis, and of linear statistical modelling. It would be suitable for anyone who has had some stats training but not used R; or has used R a little but not become confident; or has neither had stats training nor used R but is not happy with a reasonably steep learning curve. The emphasis is on rapidly getting to be able to use R for most of the common practical purposes, and knowing that you can take it further should you need to. It is designed for you to be able to work through on your own.

  1. Link to pdf for intro: https://www.danielnettle.org.uk/wp-content/uploads/2019/07/funwithR3.0.pdf
  2. Data files used for this intro: https://www.dropbox.com/sh/7s14m6ceph3laja/AAAIGT7jBZ3n6aIBR8-IT8R4a?dl=0

Moving Beyond Excel for Your Hockey Analysis

By Meghan Hall

Added Sat Dec, 2021.
What is this?
Excerpt from site: “Why and how to get started with coding! This presentation was part of Meghan Chayka and Alison Lukan’s HANIC (Hockey Analytics Night in Canada) and focused on how to move on from Excel in order to make your analysis more reproducible, efficient, and shareable”.

  1. Link to post here: https://meghan.rbind.io/talk/hanic/
  2. Link to slides here: https://meghan.rbind.io/slides/hall_hanic_2020.html#1
  3. Link to video here: https://www.youtube.com/watch?v=-Zl_b5Emvb0&feature=youtu.be

Online R courses-Mainly free ones

By Harvard University

Date added: April 15th, 2021.
What is this? Excerpt from site: Mainly free courses by Harvard university to learn R

  1. Link to site: https: https://online-learning.harvard.edu/subject/r

Programming with R

By The Carpentries

What is this?

Excerpt from site: This lesson is written as an introduction to R, but its real purpose is to introduce the single most important idea in programming: how to solve problems by building functions, each of which can fit in a programmer’s working memory. In order to teach that, we must teach people a little about the mechanics of manipulating data with lists and file I/O so that their functions can do things they actually care about. Our teaching order tries to show practical uses of every idea as soon as it is introduced; instructors should resist the temptation to explain the “other 90%” of the language as well.

  1. Course here: https://swcarpentry.github.io/r-novice-inflammation/

R best practices

By Krista DeStasio

What is this?

Excerpt from site: This post provides a discussion of best practices1 for developing code-based projects and for writing R code in a research setting with an eye toward proactively avoiding common pitfalls.

  1. Post here: https://kdestasio.github.io/post/r_best_practices/

R Bootcamp 🌱

By Ted Laderas & Jessica Minnier

What is this?

Excerpt from the course: The R-Bootcamp is a gentle and gradual introduction to manipulating and visualizing data in R using the tidyverse suite of packages. It is meant for incoming OHSU Bioinformatics and Computational Biomedicine Majors but is appropriate for any beginners wanting to learn elementary data manipulation in R.

  1. Link to course: https://r-bootcamp.netlify.app/

R Crash Course 🌱

By Rob Colautti

Added Sun May 28th, 2023

What is this?

Excerpt from the course: A Crash Course in R for new students in the Colautti Lab and anyone else who might be interested. Written in RMarkdown (mostly).

  1. Link to repo with naterials: https://github.com/ColauttiLab/RCrashCourse
  2. Link to Part 1- Fundamentals: https://colauttilab.github.io/RCrashCourse/1_fundamentals.html
  3. Link to Part 2 - qplot(): https://colauttilab.github.io/RCrashCourse/2_qplot.html
  4. Link to Part 3 - ggplot(): https://colauttilab.github.io/RCrashCourse/3_ggplot.html
  5. Link to Part 4 - regex(): https://colauttilab.github.io/RCrashCourse/4_regex.html
  6. Link to Part 5 - Data Science: https://colauttilab.github.io/RCrashCourse/5_datascience.html
  7. Link to Part 6 - Advanced: https://colauttilab.github.io/RCrashCourse/6_advanced.html

R Course 🌱

By Kirsten Morehouse

Added Fri Apr 28th, 2023

What is this?

Excerpt from the course: The aim of this workshop is to teach you the fundaments of R

  1. Link to course: https://kirstenmorehouse.wordpress.com/354-2/topic-1-crash-course-in-r/

R for Data Analysis

By Trevor French

Added Fri Apr 14th, 2023

What is this?

Excerpt from e-book: The purpose of this book is to inspire and enable anyone who reads it to reconsider the methods they currently employ to analyse data. This is not to suggest that the methodologies outlined will be useful or sufficient for everyone who reads it. Some analyses can be performed quickly without the need for additional computation while others will require advanced analytics techniques not outlined in this book; however, the aspiration is that all will be equipped with novel tools and ideas for approaching data analysis.

  1. Link to e-book here: https://trevorfrench.github.io/R-for-Data-Analysis/?es_id=aaa755b1d8

R for Psychological Science

By Danielle Navarro

What is this?

Excerpt from Site: “I’ve set this up as an introductory resource for psychology students taking my Programming with R class at UNSW. There are two goals with this resource. The first is to provide an introduction to R programming that doesn’t assume any previous experience. The second is to provide a brief sketch of some of things that R can be useful for in psychology. Data analysis inevitably forms a large part of this, but I hope to cover a broader range of topics”.

  1. Resource here: https://psyr.djnavarro.net/

R Programming for Data Science

By Roger D. Peng

What is this?

Excerpt from site: This book is about the fundamentals of R programming. You will get started with the basics of the language, learn how to manipulate datasets, how to write functions, and how to debug and optimize code. With the fundamentals provided in this book, you will have a solid foundation on which to build your data science toolbox.

  1. Web-book here: https://bookdown.org/rdpeng/rprogdatascience/

Remaster the Tidyverse

By Garrett Grolemund

What is this?

Excerpt from site: This repository contains editable class materials built by Garrett Grolemund for two separate one-day workshops: Welcome to the Tidyverse A gentle introduction to R and its Tidyverse that focuses on learning to do Exploratory Data Analysis with the ggplot2, dplyr, broom, modelr, and rmarkdown packages. The course focuses on doing data science, not writing code; but by the end of the day students will find that they have gained confidence writing code with R.

Data Wrangling with the Tidyverse An introduction to wrangling lists and tabular data in R with the tidyr, stringr, forcats, lubridate, and purrr packages. The course focuses on creating and using tidy tables and is designed to be a sequel to Welcome to the Tidyverse.

  1. Link to repo here: https://github.com/rstudio-education/remaster-the-tidyverse

R-Ladies #LdnOnt Materials

What is this?

Excerpt from site: Wonderful materials to learn and teach R!!

  1. Link to site here: https://drive.google.com/drive/folders/0BzCQiZLG7vQmVm9ISndsRzllbTA

R Tutorial🌱

By Kelly Black

What is this?

Excerpt from site: These materials are designed to offer an introduction to the use of R. It is not exhaustive, but is designed to just provide the basics. It has been developed for students who are new to R but have had some basic experience working with computers.

  1. Link to Tutorial here: https://www.cyclismo.org/tutorial/R/index.html

RYouWithMe🌱

By R-Ladies Sydney (Lisa Williams)

Added Fri Apr 28th, 2023

What is this?

Excerpt from site: RYouWithMe - a series of online learning resources for using R - designed by us, for us. The series is oriented towards R beginners and aims to provide a solid foundation of R skills. That way, future R-Ladies Sydney activities can be accessible to more of our members.

  1. Link to Tutorial here: https://rladiessydney.org/courses/ryouwithme/

Swirl

What is this?

Excerpt from site: Swirl teaches you R programming and data science interactively, at your own pace, and right in the R console!

  1. Link to site here: https://swirlstats.com/
  2. Link to courses repo here: https://github.com/swirldev/swirl_courses#swirl-courses
  3. Link to the Swirl Course Network: https://swirlstats.com/students.html

Statistical Computing at Johns Hopkins Bloomberg School of Public Health

By Stephanie Hicks

Added Fri Apri 14th, 2023

What is this?

Excerpt from course site: This course covers advanced statistical computing programming paradigms and workflows required for the research and application of statistical methods. Includes the basics of programming in unix and/or using command-line tools, introduction to version control, advanced R and tidyverse skills, introduction to creating R packages with documentation, working with relational databases, introduction to functional programming, getting and using data from APIs, introduction to Shiny and dashboards. Topics in statistical data analysis provide working examples.

  1. Link to site here: https://www.stephaniehicks.com/jhustatcomputing2022/
  2. Link to courses repo here: https://github.com/stephaniehicks/jhustatprogramming2022

Teacup Giraffes_Before the Adventure Begins: INTRO TO R🌱

By Hasse Walum & Desirée De Leon

What is this?

The site’s purpose is to introduce you to statistics with R but the first module gives you a really concise introduction of R.

  1. Link to module: https://tinystats.github.io/teacups-giraffes-and-statistics/01_introToR.html

The Tidyverse Cookbook

By Garrett Grolemund

What is this?

Excerpt from the ebook: This book collects code recipes for doing data science with R’s tidyverse. Each recipe solves a single common task, with a minimum of discussion.

  1. Link to the ebook here: https://rstudio-education.github.io/tidyverse-cookbook/

The tidyverse style guide

By Hadley Wickham

What is this?

Excerpt from site: Good coding style is like correct punctuation: you can manage without it, but it sure makes things easier to read. This site describes the style used throughout the tidyverse.

  1. Guide here: https://style.tidyverse.org/

Tidy Modeling with R

By Max Kuhn & Julia Silge

What is this?

Excerpt from site: this book provides an introduction to how to use our software to create models. We focus on a dialect of R called the tidyverse that is designed to be a better interface for common tasks using R.

  1. Link to ebook here: https://www.tmwr.org/

Tidy Tuesday by David Robinson

What is this?

Wonderful youtube channel by David Robinson.

  1. Link to site here: https://www.youtube.com/user/safe4democracy/featured

Tidyverse tutorial (2017)

By Mike Frank

What is this?

Excerpt from site: In this tutorial, I’ll walk through how to go from a database or tabular data file to an interactive plot with surprisingly little pain (and less code than you’d imagine). My focus will be on introducing a workflow that uses a wide variety of different tools and packages, including readr, dplyr, tidyr, and shiny. I’ll assume basic familiarity with R and will use (but not spend too much time teaching) ggplot2. Featuring data from http://wordbank.stanford.edu

  1. Link to the tutorial here: https://github.com/mcfrank/tidyverse-tutorial

Using R as a GIS: Preview: What Is R?

By Dr. Nick Bearman

Added Fri Apr 14th, 2023

What is this?

Excerpt from e-book here: In this preview chapter, we discuss what R is how we can use it as a GIS and why it is different to many other Geographic Information System (GIS) programs.

This book is in the works and we are offering a single preview chapter for free!

  1. Link to the course here: https://locatepress.com/book/rgis1

Using R for Data Journalism

What is this?

Excerpt from site here: This course is designed to give you a sense of all the possibilities from programming in R. It’ll emphasize packages that will help you do data analysis and visualization. Once you see how fun and easy it can be, you’ll be more open to tackling the more challenging task of robust statistical analysis in R, with all its quirks.

  1. Link to the course here: https://learn.r-journalism.com/en/

What They Forgot to Teach You About R 🌳

By Jennifer Bryan & Jim Hester

What is this?

Excerpt from site: The initial impetus for creating these materials is a two-day hands-on workshop. The in-person workshops are still the primary delivery method for this content, but we’ve begun recording prose versions of this content, in order to make it more widely available and for participants to refer back to. Warning: these materials absolutely do not constitute a self-contained “book”, nor do they capture all workshop content.

  1. Web-book here: https://rstats.wtf/index.html

Workshop on Data Analysis using R 🌱 🌳

By the American Statistical Association, University of South Florida Chapter

What is this? Excerpt from flyer here: The objective of this workshop was to introduce undergraduate and graduate-level students to R and How to use R and various popular packages to perform important data visualizations and analysis. November 5th - 9th, 2018 - Tampa FL.

  1. Day one recorded workshop: https://www.youtube.com/watch?v=bgG-CLTTX-o
  2. Day two recorded workshop: https://www.youtube.com/watch?v=0fOlzWlC_LM
  3. Day three recorded workshop: https://www.youtube.com/watch?v=YDCMaiLykSo
  4. Day four recorded workshop: https://www.youtube.com/watch?v=1_xbU6HmrbM

YaRrr! The Pirate’s Guide

By R Nathaniel D. Phillips

What is this?

Excerpt from site: This book is meant to introduce you to the basic analytical tools in R, from basic coding and analyses, to data wrangling, plotting, and statistical inference.

  1. Web-book is here: https://bookdown.org/ndphillips/YaRrr/