Week 2: Objects, Types, Classes, and Collections
Agenda
- In-class Quiz on Homework 1 (5 minutes)
- Lecture on basics of variables, objects, types, and classes, as well as collections of objects, like vectors, lists, and data frames. We will also meet some of our first functions along the way.
- Today I recommend downloading the following R script (which contains only the code chunks from the lecture) and following along in RStudio by running line-by-line: week_2.R
- Hands-on Lab 2 will give you practice reading data into R from a text file to create a
data.frameobject, and then reinforce some of the concepts from today using the variables defined in this dataset.
Supportive reading outside class
(Optional but recommended) the best supporting textbook material for this week is section 2 of this book:
- Grolemund, G. (2014). Hands-On Programming with R. O’Reilly Media. Retrieved from https://rstudio-education.github.io/hopr/.