Assignment #12 - R Markdown
For this week's assignment, we were tasked with learning the basics of R Markdown authoring and document structure by practicing embedding R code, narrative text, and LaTeX math in a single file. Here are some of the things I learned: While building this document, I learned that Markdown has specific syntax to follow. Including "##" will generate a small header, and any text written without that will display in a paragraph font. To create a code chunk, you have to encase it in ``` ```, and include {r chunk_name}. If you want to hide the code in the rendered output, you would write it as {r chunk_name, include=FALSE}. The code chunk generated with the document (shown below) essentially creates a rule that the R code will be displayed in each chunk by default after knitting. LaTeX math has two modes, inline or display. The inline equation mode uses a single $ on each end of the equation (e.g., $a^2 + b^2 = c^2$), whereas the displayed mode uses two $$ on each end (e....