As discussed in the previous section, knitr is used to design pleasing reports in R. R Markdown provides a simple syntax to define analysis reports. Based on the definitions of report generation, knitr can generate reports in various formats such as HTML, PDF, Microsoft Word, and several presentation formats. R Markdown documents usually contain regular text, embedded R code chunks, and inline R code. A knitr package parses the Markdown document with the insertion of results for executing the R code, at mentioned locations within the regular text, to create a well-formatted report. This refers to the breakdown of statements of R to create a report that is easy to understand.
We will use the following ...