Intro to R / RStudio

Department of Mathematics, Applied Mathematics, and Statistics — Case Western Reserve University

Everything here is original and open. Text © Gonsalge Almeida (CC BY 4.0). Code samples MIT-licensed.

Getting Started

  1. Install R, RStudio, and first checks
  2. R basics: console, objects, vectors
  3. Packages and working directory
  4. Importing data (CSV, Excel, clipboard)
  5. Vectors & matrices (with small exercises)
  6. Base plots: hist, boxplot, scatter
  7. Matrix Manipulation

Datasets used here include built-in mtcars, iris, and an optional thickness.csv.

Next Steps (Will add later)

  1. Reproducible reports with R Markdown (basics)
  2. Knitting, parameters, and exporting
  3. Code + narrative for labs
  4. (placeholder) ggplot2 quickstart
  5. (placeholder) dplyr verbs for wrangling
  6. (placeholder) Descriptive statistics for engineering