Week 6 Overview

Published

2025-06-23

Welcome to week 6!

This week we’ll start off with a recap, and then introduce the apply() functions from Base R, and the (mostly) equivalent tidyverse options from the purrr package. We will then get into advanced function writing and querying APIs.

Week 6 Additional Readings/Learning Materials

apply() family

Advanced R: Chapter 9.7

purrr

R for Data Science: Chapter 26.3.3

Advanced Function Writing

R for Data Science: Chapter 19

Upon completion of this week, students will be able to:

  1. query APIs to return appropriate data (CO 2)

    1. define the term API
    2. explain the common syntax often used for APIs
  2. have a base understanding of the common apply() family of functions

    1. have a working understanding on how to use common apply functions
    2. understand when to use which apply function
  3. have a base understanding of the purrr package

    1. have a working understanding on how to use common map functions
    2. understand when it may be useful to use functions from the purrr pacakge vs Base R
  4. Improve function writing skills

    1. have a working understanding of how to leverage … into our function writing
    2. how to use stops in function writing
    3. and more!