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

Exercise

Creating a new report using a parameter

Now that you've added a parameter to the document, you'll create a new report for Bangladesh from the investment_services_projects data using the country parameter.

Before knitting the report, you'll review and modify the text of the document to ensure that the knit report will reflect the country that is specified in the parameter.

Instructions

100 XP
  • Replace Brazil in the document headers with a reference to the country parameter.
  • Add the country parameter to the "Investment Report" title field of the YAML header so that, once the file is knit, the report title will render as "Investment Report for Projects in Bangladesh".
  • Using the country parameter, create a new Investment Report file for Bangladesh.