Welcome! On November 15, 2023, this workshop provided an introduction to the basics of R. All of the material from that workshop is still here!
The next workshop is scheduled for December 4, 2023, and will cover Quarto, a system in RStudio that creates reports, presentations, and more using a combination of R code and markdown syntax.
The URL for this website is: https://epimath.org/wchd-R-workshop/
For today, please download this zip file.
Note: You may need to update RStudio to version 2023.09.1. In RStudio, go to “Help” then “Check for Updates”.
Instructors: Marisa Eisenberg and Julie (Jules) Gilbert (University of Michigan, Ann Arbor)
Below is an overview of the topics we’ll cover.
We’ve given estimated times for each topic below, but note they may be somewhat approximate! We may adjust as needed based on how comfortable everyone is working with R.
You should have received an email already with this info! But if for some reason you haven’t already installed the R, RStudio, and the packages we’ll be using today, here are the instructions and the installation check code that you can run to make sure you’re all set!
Before we start, please download this zip file of all the datasets we will use for this workshop. Put it in whatever folder/directory you plan to put all your workshop code in and then unzip it. You should have a folder called “datasets” with a bunch of csv and excel data inside!
12-12:10pm (10 minutes)
Covers: basic use of R, RStudio (the environment, console, etc.), loading packages (basically making sure everyone is set up and ready to go!)
12:10-12:30pm (20 minutes)
Covers: dataframes, loading csv and excel data, basic operations with dataframes
Tidyverse
and dplyr
: the pipe
operator!12:30-12:50pm (20 minutes)
The Epi R Handbook! - Really great resource for R with a public health focus. Includes advice for transitioning to R, code for common analyses, and more
Intro to R coursera class
Stat545 Intro to R website
All the [R package cheatsheets](https://github.com/rstudio/cheatsheets/blob/main/data-visualization.pdf! A super handy resource
Rmarkdown: quick tour, longer intro, Rmarkdown complete guide