In this video, you'll learn what an RMarkdown document is, and how to use it to create a completely reproducible report that combines R code, R output, words/paragraphs, and LaTeX. By the end of this video, you'll be able to send someone a zip folder that contains your RMarkdown document, and the other person will be able to run your file from start to finish and get the exact same results as you without changing a single thing!
0:00 - What is RMarkdown?
5:43 - How can you make your R code 100% completely reproducible?
You can also use this R code outside of an RMarkdown document, in a .R file, and it will also be completely reproducible.
Note: If you're using any R functions which require randomization, you should also set a seed using the set.seed() function to ensure reproducibility.
To see the contents of this zip folder (including the R code and RMarkdown file), go here: https://github.com/melissavanbussel/Y...