Module 1: Mission Antarctica!
Overview
The team has arrived in Antarctica and needs to establish the technical foundation for all future data work. Students begin by learning how to use R and RStudio in Posit Cloud, including how to run code, create objects, work with vectors, understand data classes, subset data, and use functions. They are also introduced to the tidyverse, where they begin learning how to select, filter, summarize, group, and mutate data. By the end of the module, students are comfortable navigating their coding environment and working with simple ecological datasets.
Learning Objectives
By the end of this module, students will be able to:
- describe the role of R and RStudio in a data science workflow
- use Posit Cloud to write, run, and organize code
- create objects and work with vectors in R
- distinguish among common data classes, including numeric, character, logical, factor, and data frame structures
- subset vectors and data frames using both index- and condition-based approaches
- use functions and interpret function arguments in R
- use core
tidyversetools such asselect(),filter(),mutate(),summarize(), andgroup_by()to explore and organize data - use the pipe operator (
%>%) to chaintidyversefunctions together
Lessons & Assignments
Lessons
| Lesson | QMD | Data Files |
|---|---|---|
| 1.1: Introduction to R and RStudio | Download | None |
| 1.2: Intro to Coding in R | Download | None |
| 1.3: Introduction to the tidyverse | Download | global_temps.csv |
Assignments
| Assignment | QMD | Data Files | Outputs |
|---|---|---|---|
| M1A2: Getting to Know Your Antarctic Home | Download | team_antarctica.csv | Download |
| M1A3: Preparing the Station | Download | aggregated_station_data.csv | Download |
GitHub
To clone the entire course, visit the course GitHub repository.