$35
CSDE 502
Assignment 1
Introduction to R Markdown
Instructions:
1. Fill out your name and UWNetID at the top of this page.
2. Add your answers to this document.
3. Use the "00Answers" Word style for your answers so they will be clearly discernible from the questions.
4. When you are completed with your work, create a PDF from the Word document.
5. Name your PDF document with the pattern UWNetID_HW_n.pdf where UWNetID is your UWNetID and n is the week number when the homework was assigned. For example, the first assignment by me would be named phurvitz_HW_01.pdf. Upload your completed document to Canvas.
6. Upload any specified data or code files to Canvas.
Explanation:
For this assignment, you will be looking in detail at the file week_01.Rmd (http://staff.washington.edu/phurvitz/csde502_winter_2021/files/week_01.html), examining some code that creates a set of files with different names, and suggesting better file names for a list of files.
If you are not familiar with R Markdown format, these resources will be helpful, or others you can find by performing a web search for “R Markdown”:
https://rstudio.com/wp-content/uploads/2016/03/rmarkdown-cheatsheet-2.0.pdf
https://www.dataquest.io/blog/r-markdown-guide-cheatsheet/
Within RStudio, you can also see:
Help Cheatsheets R Markdown Cheat Sheet
Help Cheatsheets R Markdown Reference Guide
Questions:
1. For week_01.Rmd:
1.1. Explain what the output code in the front matter/YAML header of the Rmd file does.
1.2. Explain how the kableExtra package is used in the Rmd file.
1.3. Describe how captions and cross-references are implemented in this Rmd with the captioner package.
2. Download and run the file http://staff.washington.edu/phurvitz/csde502_winter_2021/files/file_naming.R and briefly comment on different approaches to naming files.
3. Download the file http://staff.washington.edu/phurvitz/csde502_winter_2021/files/example_filenames.csv and produce a table with the original file name and your suggestion for a better file name.