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, February 9 100%
Quiz 02 Thursday, February 9 105%
Lab 03 Thursday, February 16 100%
Quiz 03 Thursday, February 16 105%

Office Hours

Staff and Link Day Time
Zoom with Abdi Tuesday 4:00 PM - 5:00 PM
Zoom with Mallory Wednesday 9:00 AM - 10:00 AM
Zoom with Zhiyuan Wednesday 4:00 PM - 5:00 PM
Zoom with Alton Wednesday 5:00 PM - 7:00 PM
Zoom with Mallory Thursday 1:15 PM - 2:15 PM
Zoom with Abdi Thursday 3:00 PM - 4:00 PM
Zoom with Zhiyuan Thursday 4:00 PM - 5:00 PM
Discussion Forum Any! Any!