Get startedGet started for free

Give your document a structure

From now on, you're going to create a step-by-step RMarkdown report with your plot from the last chapter. The first thing you are going to do is to add structure through section headers.

PS: Note that it's good practice to include a space between the sign(s) that denote a header and the text! This keeps your Markdown syntax nice and readable.

This exercise is part of the course

Communicating with Data in the Tidyverse

View Course

Exercise instructions

  • Turn the section titles of these paragraphs, e.g. "Summary", into headers by using the appropriate RMarkdown syntax.
  • "Summary", "Preparations" and "Analysis" should be second-level headers, while "Data", "Preprocessing" and "Results" should be third-level headers.

Remember to adhere to best practices by including a space in your headers as described above!

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

{"my_document.Rmd":"---\ntitle: \"The reduction in weekly working hours in Europe\" \nsubtitle: \"Looking at the development between 1996 and 2006\"\nauthor: \"Insert your name here\"\noutput: html_document\n---\n\nSummary\n\nThis is where you are going to quickly summarize what you did.\n\nPreparations\n\nThis is where you will load the necessary R packages.\n\nAnalysis\n\nData\n\nThis is where you will load the data. \n\nPreprocessing\n\nThis is where you will preprocess the data.\n\nResults\n\nThis is where you will plot the data.\n\n\n"}
Edit and Run Code