Multiple parameters

Reporting with R Markdown

Amy Peterson

Head of Core Curriculum at DataCamp

Fiscal year

  • 2012 to 2018 fiscal years
  • July 1st (previous year) - June 30th (year of interest)
Reporting with R Markdown

Adding a parameter for fiscal year

Markdown file with fiscal year parameter

Reporting with R Markdown

Adding parameters to define fiscal year

Markdown file with start and end date fiscal year parameters

Reporting with R Markdown

Reviewing the code

Reviewing code for date references.png

Reporting with R Markdown

Reviewing the code

Replacing date references in code with year_start and year_end parameters.png

Reporting with R Markdown

Reviewing the code

Reviewing code chunks and object names for date references.png

Reporting with R Markdown

Reviewing the code

Replacing date references in code chunks and object names.png

Reporting with R Markdown

Reviewing the text

 

Reviewing text for specific year references

Reporting with R Markdown

Reviewing the text

 

Edited text to remove specific year references

Reporting with R Markdown

Reviewing the YAML header

Markdown file with start and end date fiscal year parameters

Reporting with R Markdown

Knitting the report

Markdown file for Turkey 2013

Markdown file Turkey 2013

Reporting with R Markdown

Let's practice!

Reporting with R Markdown

Preparing Video For Download...