Week 1

Intro to R/RStudio, Functions, Vectors, Data Types
Published

January 8, 2026

Modified

February 25, 2026

Topics

  • Part 0: Welcome
    • Introduction to course & expectations (syllabus)
  • Part 1:
    • Intro to R & RStudio
      • Handout with directions on installing R & RStudio
    • Introduction to Quarto
    • Functions, Vectors, Data Types

Announcements

  • Class materials for BSTA 526 will be provided in the shared OneDrive folder BSTA_526_W26_class_materials_public.
  • For today’s class, make sure to download to your computer the folder called part1. Open RStudio by double-clicking on the project file called BSTA_526_W26_class_materials_public.Rproj in the main OneDrive folder.

Class materials

Part OneDrive folder Slides Webpage
0
1

Readings

Required

These readings are mostly supplemental and will help you if there are concepts that are unclear in class.

Optional

Posit/R Cheatsheets

  • Many useful information and tips can be found in the list of cheatsheets on the Posit website

Markdown / Quarto

Swirl Basics

This is a resource for learning basic R concepts using the R package swirl.

To start it, run the following code in the console in RStudio:

# first install the swirl package
library(swirl)
swirl()

# Note: type bye() to exit swirl

You’ll want to take a look at the R Programming course, especially the following sections:

  1. Basic Building Blocks
  2. Sequences of Numbers
  3. Vectors
  4. Missing values

Post-class survey

  • Please fill out the post-class survey to provide feedback. Thank you!
  • Previous muddiest points and clearest points with responses are collected here.

Homework

  • See OneDrive folder for homework assignment.
  • HW 1 due on 01/15.

Recording

  • In-class recording links are on Sakai. Navigate to Course Materials -> Schedule with links to in-class recordings.