Putting it together
Overview
Teaching: 0 min
Exercises: 20 minQuestions
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:
- read in the gapminder data
- subset the data to keep only rows 100 to 199
- produce a plot of your choice, and save it to the
/figures
directory- 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