Skip to Main Content
It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.

R for Beginners

Guide for the workshop Using R for Data Wrangling, Analysis, and Visualization

Pre-survey & Workshop Evaluation

Please fill out the pre-survey and evaluation to help us understand your expectations and thoughts about the workshops.

Session 1: Introduction to R

Session 1: Introduction to R

Content Covered

  1. R and RStudio Installation

  2. More about RStudio - interface, projects, working directory

  3. R package installation

  4. Objects, functions, and comments

  5. Vectors and data types

  6. Missing data

Details

Installation for PC
  1. Download R from https://cran.r-project.org/bin/windows/base/
  2. Download RStudio at https://www.rstudio.com/products/rstudio/download/#download
Installation for Mac
  1. Check your version number and make sure to download the correct version of R/RStudio.

  2. Download R from https://cran.r-project.org/bin/macosx/, and select the .pkg link based on your macOS version.

  3. Download RStudio at https://www.rstudio.com/products/rstudio/download/#download

R & RStudio Installation Guidance
Relevant Links

Session 2: Data in R

Session 2: Data in R

Content Covered

  1. Data frames and tibbles

  2. Factors

  3. Dates

Details

About the Dataset

The data used for this lesson are in the figshare repository at: https://figshare.com/articles/SAFI_Survey_Results/6262019

This lesson uses SAFI_clean.csv. The direct download link for this file is: https://ndownloader.figshare.com/files/11492171

Session 3: Data Wrangling with dplyr and tidyr

Session 3: Data Wrangling with dplyr and tidyr

Content Covered

  1. Data wrangling with dplyr
  2. Reformat data with tidyr
  3. Export data

Session 4: Data Visualization with ggplot2

Session 4: Data Visualization with ggplot2

Content Covered

  1. About ggplot
  2. Building your plots iteratively
  3. Boxplots
  4. Bar charts
  5. Faceting

Books about R and R Programming