Vectors and Subsetting
Week 04, Fall 2025
- Start: Monday, September 15
- End: Friday, September 19
Summary
This week we will introduce two more important objects: list and data frames. Then we will look at subsetting objects.
Learning Objectives
After completing this week, you are expected to be able to:
- Understand the difference between atomic vectors, lists, and data frames.
- Create and use lists.
- Create and use data frames.
- Use the three common subsetting operators (
[,[[, and$) with atomic vectors, lists, and data frames. - Use each of the six different types of subsetting allowed in R.
- Understand the difference between preserving and simplifying operations.
Reading
| Link | Source |
|---|---|
| Generic Vectors | Atomic R |
| Subsetting | Atomic R |
Video
| Title | Link | Mirror |
|---|---|---|
| 4.1 - Welcome to Week 04 | 4.1 - YouTube | 4.1 - ClassTranscribe |
| 4.2 - Generic Vectors | 4.2 - YouTube | 4.2 - ClassTranscribe |
| 4.3 - Subsetting | 4.3 - YouTube | 4.3 - ClassTranscribe |
| 4.4 - Lab 03 | 4.4 - YouTube | 4.4 - ClassTranscribe |
Assignments
| Assignment | Deadline | Credit |
|---|---|---|
| Lab 02 | Thursday, September 18 | 100% |
| Quiz 02 | Thursday, September 18 | 105% |
| Lab 03 | Thursday, September 25 | 100% |
| Quiz 03 | Thursday, September 25 | 105% |
Office Hours
See Syllabus!