- Start: Monday, September 19
- End: Friday, September 23
Summary
This week we will introduce some programming fundamentals: comparison and Boolean operators, control flow, and iteration.
Learning Objectives
After completing this week, you are expected to be able to:
- Use comparison operators and related functions to create logical vectors.
- Use Boolean operators to perform operations on logical vectors.
- Combine comparison and Boolean operators to perform logical subsetting.
- Use
if and else statements to conditionally evaluate R expressions.
- Use
ifelse as a vectorized alternative to if and else statements.
- Use
lapply and related functions to iterate over the elements of a vector.
- Use
for and while loops to repeatedly evaluate R expressions.
- Avoid common pitfalls when using loops in R.
Assignments
| Lab 03 |
Thursday, September 22 |
100% |
| Quiz 03 |
Thursday, September 22 |
105% |
| Lab 04 |
Thursday, September 29 |
100% |
| Quiz 04 |
Thursday, September 29 |
105% |