T_02_01_01
1 Read a file from the web
Load the
readr
library (install it if it is not installed yet).Manually inspect this URL: https://raw.githubusercontent.com/open-numbers/ddf–gapminder–systema_globalis/refs/heads/master/multidimensional/ddf–datapoints–literacy_rate_youth–by–geo–gender–time.csv.
Look up the help pages for the
readr
functionread_delim
and store this table in a variable using this function.Save the content of this variable to a file named
gapminder_literacy_rate_youth–by–geo–gender–time.tsv
(and make it a real tsv file) using any function you find suitable.Save your script as File <YOURLOGIN>
_E02_01_01.qmd
in the foldermy_exercise_scripts
directly in theR_BEGINNERS_SHORT
folder. If this folder does not exist, create it by using thedir.create
function. Use this exercise to play with the typography a bit. You can pretend it is an expert technical report on scraping data from Gapminder’s repositories.