Module 6

Data types & Vectors & For Loops

Author
Affiliation

Lars Schöbitz

ETH Zurich

Learning Objectives

  1. Learners can apply functions from dplyr to change specific values of a variable in a dataframe.
  2. Learners can apply functions from the lubridate package to convert dates not in ISO 8601 to the date class in R.
  3. Learners can apply functions from knitr and gt package to display and cross-reference tables in HTML output reports.

Slides

View slides in full screen | Download slides as PDF

Readings

  1. Read R for Data Science - Section 7 - Data import
  2. Read R for Data Science - Section 10 - Exploratory data analysis

Assignments

Please complete the following assignment by Monday, 28th October 2025.

  • Assignment 1: Good enough practices in scientific computing
  • If you haven’t yet, then: Assignment 2: Identify data for your capstone project

Thank you for working through this assignment.