Resources
Getting started
- R reference card
- R introductory guide
- R jargon
- R terminology
- What is the Tidyverse/what packages are in it?
- Where do package names come from?
- Lawlor et al. 2022: Ten simple rules for teaching yourself R
Troubleshooting guides
Keyboard shortcuts
- RStudio shortcuts can be found here.
Extra help
Data importing
- Video on data import
- Video for PC users who want to see how to move files around (especially from downloads)
- Video for Mac users who want to see how to move files around (especially from downloads)
- Extra information about file paths
Joining datasets
Plotting data
ggplot2
gallery - See what is possible withggplot2
to create graphs in Rggplot2
theme cheatsheet- Visualization best practices
- Guide on when to use which plot
- Guide to building up a
ggplot2
figure
Statistics
- Guide on when to use what stats test
- Modeling 101
- Common statistical tests are linear models (why understanding linear models will get you far!)
- Interpreting GLM output (e.g., deviance)
Courses & Conferences
Online Courses and Resources
- Tidyverse Skills for Data Science Book (a great next step to learn more about the tidyverse, some modeling, and machine learning)
- Tidyverse Skills for Data Science Course (same content with quizzes, can get certificate with $)
- Open Case Studies
(resource for specific public health cases with statistical implementation and interpretation - a great next step for learning more about stats and wrangling!) - R for Data Science (great general information)
- R for Applied Epidemiology (Similar general introductory course)
- R basics chapter of Introduction to Data Science by Rafael A. Irizarry(great general information)
- Dataquest (general interactive resource)
- Quick R Guide (nice free general resource)
- Introduction to Reproducibility
- Advanced Reproducibility
R Conferences
- The RStudio/Posit conference has lots of useful workshops!
- useR! — International R User Conference information can be found here.
R for Stata, SPSS, and SAS files
- The Haven package
(This package is super useful for reading and writing files so that they are compatible across Stata, SPSS, SAS, and R) - R vs Stata
(See page 505) - R <-> SAS Cheatsheet
- SAS to R Converter
- You might also find large language models like ChatGPT useful for code conversion. Be sure to check the output because AI makes mistakes!
Videos of Online Lectures
JHU Summer Institute 2023
Day | Link to Video |
---|---|
Introduction | https://youtu.be/aIJrFKQYnP8 |
RStudio | https://youtu.be/cxHVf5rTK1c |
Reproducibility | https://youtu.be/af9B9-_df1o |
Basic R | https://youtu.be/5io-iZDutH8 |
Data Input | https://youtu.be/sllVVRD5YE4 |
Subsetting Data | https://youtu.be/dWdK3bnAGm8 |
Data Classes | https://youtu.be/Q4ubnU35TUs |
Data Summarization | https://youtu.be/xsI30yCGgTQ |
Data Cleaning | https://youtu.be/qL6_yfiR9Jk |
Data Manipulation | https://youtu.be/fQ7lDp8Svw0 |
Intro to Data Visualization | https://youtu.be/D5RdNwadtR0 |
Data Visualization | https://youtu.be/fKj1iBxLwyk |
Factors | https://youtu.be/yqU5zHVh-qA |
Statistics | https://youtu.be/T9Oh0miYhZ0 |
Data Output | https://youtu.be/x2OuR4JhPLY |
Functions | https://youtu.be/jWv5RSXq5mo |
JHU Summer Institute 2022
Day | Link to Video |
---|---|
RStudio and Reproducibility | https://www.youtube.com/watch?v=eCsD0f0q6rY&t=9s |
Basic R | https://www.youtube.com/watch?v=2YRgDG3qsho |
Data IO | https://www.youtube.com/watch?v=ejnBAdA2N1c |
Subsetting Data | https://www.youtube.com/watch?v=GFa6dXAezJg |
Data Summarization | https://www.youtube.com/watch?v=kj_69maSANk |
Data Classes | https://www.youtube.com/watch?v=zoVciFJieLY&t=21s |
Data Cleaning | https://www.youtube.com/watch?v=GhK8xMUBNwg |
Data Manipulation | https://www.youtube.com/watch?v=qP73AWUjfAU |
Intro to Data Visualization | https://www.youtube.com/watch?v=OCVo6vWrKL4 |
Data Visualization | https://www.youtube.com/watch?v=9UPlZqOfT_s |
Factors | https://www.youtube.com/watch?v=0fE756trEEE |
Statistics | https://www.youtube.com/watch?v=jZ5sskAdAJU&t=4s |
Functions | https://www.youtube.com/watch?v=dx-85RzN1G0 |