Assignment #12: Introduction to R Markdown

For this assignment, we are practicing using R Markdown and embedding code, narrative text, and LaTeX math into a single file. 

Here is what I entered into R:

After knitting, here is my output and result:

The code is automatically executed, and the equations I entered also automatically formatted. I noticed that where I entered “#3”, the format changed it to a heading instead. 

My experience using R Markdown was pretty straightforward and useful. Although I had a little trouble at first understanding how to format the document and where to enter the R code, I was able to get the hang of it with some practice. Compared to writing a plain report, I found R Markdown more convenient because it allows me to combine written explanations, code, mathematical equations, and graphs all in one place. I also learned how to use LaTeX to include mathematical expressions and equations, such as Greek letters and algebraic formulas. I like that the results can be automatically generated and updated by knitting. I found R Markdown to be an easy and helpful tool for organizing information and presenting data analysis.

GitHub link here. 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *