Creating Dynamic Reports with knitr and R Markdown
Instruction: Demonstrate how you would create a dynamic report in R using knitr and R Markdown that includes both analysis and visualizations.
Context: This question evaluates the candidate's ability to integrate code, data, and narrative in a reproducible way using R tools.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
An R Markdown report combines YAML metadata, prose, executable knitr chunks and optional inline calculations...