T_02_01_01
1 Read a file from the web
Load the
readrlibrary (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
readrfunctionread_delimand 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.qmdin the foldermy_exercise_scriptsdirectly in theR_BEGINNERS_SHORTfolder. If this folder does not exist, create it by using thedir.createfunction. 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.