Putting it together

Overview

Teaching: 0 min
Exercises: 20 min
Questions
  • How can I put together the things we’ve learnt so far?

Objectives
  • To be able to read, subset, plot and write data in one script

Challenge 1

Write and save a script to:

  1. read in the gapminder data
  2. subset the data to keep only rows 100 to 199
  3. produce a plot of your choice, and save it to the /figures directory
  4. Write the data subset as a csv in data/cleaned

Key Points

  • Intermediate results need to be kept

  • Thinking about the location of output files is important to keep things organised