1. Learn
  2. /
  3. Courses
  4. /
  5. Reporting with R Markdown

Exercise

Filtering for a specific year

Now that you've filtered the data for the projects in a specific country, you can filter the results further to look at all projects that occurred in the 2018 fiscal year. Recall, the fiscal year starts on July 1st of the previous year and ends on June 30th of the year of interest.

Instructions

100 XP
  • In the fourth code chunk, create brazil_investment_projects_2018 by filtering the investment_services_projects data for projects in Brazil with a date_disclosed in the 2018 fiscal year, which starts on July 1, 2017 and ends on June 30, 2018.
  • Label the code chunk brazil-investment-projects-2018.
  • Add a header to line 33 using three hashes to label the section Investment Projects in Brazil in 2018.