Assignment

This assignment assumes that you have completed the steps presented in the material of Day 1. In this assignment (which is essentially a test-run for upcoming assignments) you should follow steps 1-5 below. It is assumed that you are signed in to GitHub in a browser and have the Homework project active in RStudio. You will do all six homework assignments within the same R project/GitHub repository. You can find an example here.

  1. Create a subdirectory HW1 in your Homework directory.
  2. Write an R Markdown document called HW1.Rmd in HW1, this should contain
    • the document option output: github_document in the header,
    • a brief description of your past experiences, if any, of using R, RStudio, R Markdown, Git, Github, ggplot2 and dplyr,
    • a plot, using ggplot, of some aspect of a data-set. The data-set should be found on the web (i.e. not one that is preloaded in R or in some package) and you should document any steps taken in retrieving the data. Google something you like and add “free dataset”, “data” or perhaps download something fun from scb.se! If you aim to write about your code then you are free to present it. If not, read the documentation for Rmarkdown chunks to make sure that your code is not visible.
    • End the document with a code chunk containing sessionInfo() (see end of this document), informing the reader what versions of R and packages you are using.
  3. Knit HW1.Rmd to create a file HW1.md that can be rendered by GitHub. Commit your work and Push it to GitHub, see Chapter 12, from if you need a reminder. Check using a web-browser that it is all there. Note that also the folder HW1_files needs to be committed, or the plots will not show on GitHub.
  4. Edit the README.md in your Homework directory to contain a link to HW1.md for easy access.
  5. When you are happy with the result, possibly after repeated uses of Commit and Push, open an issue in your Homework repository (see image below where to find issues) stating “HW1 ready for grading!”.

Peer review

After deadline has passed, you will be given access to another students repository on GitHub. You should provide summary feedback by responding to the “HW1 ready for grading!” issue. Copy the following checklist and use it in your review:

* Is the homework complete, e.g. are all steps in the homework done?

* Is there a working link from the main repository `README.md` to `HW1.md`?

* Do figures show up on `HW1.md` as expected?

* Is any code showing? If yes, is there any text about it?

* Was the latest version of R used?
sessionInfo()
## R version 4.0.5 (2021-03-31)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 19043)
## 
## Matrix products: default
## 
## locale:
## [1] LC_COLLATE=Swedish_Sweden.1252  LC_CTYPE=Swedish_Sweden.1252   
## [3] LC_MONETARY=Swedish_Sweden.1252 LC_NUMERIC=C                   
## [5] LC_TIME=Swedish_Sweden.1252    
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## loaded via a namespace (and not attached):
##  [1] digest_0.6.28   R6_2.5.1        jsonlite_1.7.2  magrittr_2.0.1 
##  [5] evaluate_0.14   rlang_0.4.11    stringi_1.7.4   jquerylib_0.1.4
##  [9] bslib_0.3.0     rmarkdown_2.11  tools_4.0.5     stringr_1.4.0  
## [13] xfun_0.26       yaml_2.2.1      fastmap_1.1.0   compiler_4.0.5 
## [17] htmltools_0.5.2 knitr_1.36      sass_0.4.0