1. Learn
  2. /
  3. Courses
  4. /
  5. Communicating with Data in the Tidyverse

Connected

Exercise

Inline code statements

As you've seen in the video, R code can not only be included in the form of chunks, but also in the form of inline statements:

2 + 2 equals `r 2 + 2` and here the text continues.

Most often, inline statements are used to compute a single value that fits in nicely with the surrounding text.

Using an inline code statement, add a sentence that automatically tells the reader how many rows there are in the ILO data set.

Instructions

100 XP
  • In the "Data" section, on line 30, complete the sentence "The loaded data contains..." to specify the correct number of rows in the ilo_data dataset, using the count() function from the Tidyverse.
  • Make sure to wrap your R code with the correct symbols, as shown above.