5.6 Exercise: Scraping (more) tables
- For your project you would like to know how the average population has increased in Switzerland over the years. Search for data and plot it.
- Source: https://en.wikipedia.org/wiki/Demographics_of_Switzerland
- Use the
html_nodes
function that we used above (other useful functions could begsub()
,t()
,rownames()
anddata.frame()
.
- Rename the variables.
- Try to produce the plot shown below.
Q: What kind of evolution is that? What happened at the time of the bumps?