Instructions:
- Fill out your name and UWNetID at the top of this page.
- Add your answers to this document.
- Use the 00Answers Word style for your answers so they will be clearly discernible from the questions.
- When you are completed with your work, create a PDF from the Word document.
- 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 pdf. Upload your completed document to Canvas.
- 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:
- For week_01.Rmd:
- Explain what the output code in the front matter/YAML header of the Rmd file does.
- Explain how the kableExtra package is used in the Rmd file.
- Describe how captions and cross-references are implemented in this Rmd with the captioner
- 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.
- 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.
Reviews
There are no reviews yet.