Vectors and Subsetting

Week 04, Spring 2022

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 15 100%
Quiz 02 Thursday, September 15 105%
Lab 03 Thursday, September 22 100%
Quiz 03 Thursday, September 22 105%

Office Hours

Staff and Link Day Time
Zoom with Abdi Monday 4:00 PM - 6:00 PM
Zoom with David Monday 7:00 PM - 8:00 PM
Zoom with David Tuesday 7:00 PM - 8:00 PM
Zoom with Christina Wednesday 9:00 AM - 10:00 AM
Zoom with Zhiyuan Wednesday 2:30 PM - 4:30 PM
Zoom with David Wednesday 7:00 PM - 8:00 PM
Zoom with Jonas Thursday 6:00 PM - 8:00 PM
Discussion Forum Any! Any!