Control Flow and Iteration
Week 05, Spring 2022
- Start: Monday, February 14
- End: Friday, February 18
Summary
This week we will introduce some programming fundamentals: logical and Boolean operators, control flow, and iteration.
Learning Objectives
After completing this week, you are expected to be able to:
- Use comparison operators to create logical vectors.
- Use Boolean operators to work with logical vectors.
- Use
if
,else
,switch
, andifelse
for control flow. - Use
lapply
to iterate without using a loop. - Use
for
,while
, andrepeat
to write loops.
Reading
Link | Source |
---|---|
Logical Operations | Course Website |
Control Flow | Course Website |
Iteration | Course Website |
Video
Title | Link | Mirror |
---|---|---|
5.0 - Welcome to Week 05 | 5.0 - YouTube | 5.0 - ClassTranscribe |
5.1 - Logical Operations | 5.1 - YouTube | 5.1 - ClassTranscribe |
5.2 - Control Flow | 5.2 - YouTube | 5.2 - ClassTranscribe |
5.3 - Iteration | 5.3 - YouTube | 5.3 - ClassTranscribe |
5.4 - Lab 04 | 5.4 - YouTube | 5.4 - ClassTranscribe |
Assignments
Assignment | Deadline | Credit |
---|---|---|
Lab 03 | Friday, February 18 | 100% |
Quiz 03 | Friday, February 18 | 105% |
Lab 04 | Friday, February 25 | 100% |
Quiz 04 | Friday, February 25 | 105% |
Office Hours
Staff and Link | Day | Time |
---|---|---|
Zoom with David | Monday | 3:00 PM - 4:00 PM |
Zoom with Tyler | Thursday | 2:00 PM - 4:00 PM |
Zoom with David | Thursday | 5:00 PM - 7:00 PM |
Zoom with Linjun | Thursday | 7:00 PM - 9:00 PM |
Zoom with Earl | Friday | 10:00 AM - 12:00 PM |
Zoom with Lia | Friday | 2:30 PM - 4:30 PM |
Discussion Forum | Any! | Any! |