Learning Objectives
Following this assignment students should be able to:
- Properly structure and R project
- create a new repository in git from Github
- clone a repository from Github using Rstudio
Exercises
- Accept the Projects Structure assignment here
- Clone your repository in a local directory using Rstudio
- You can find last lecture slides here
- Open the .R file and check its general structure
- Comment and create sections within the R code file (e.g., libraries, data, plots, etc)
# LIBS -----------------------------
# Some notes
library(tidyverse)
library(lubridate)
# DATA -----------------------------
# Some notes
dat1<-read.csv("file2.csv")
-
Using
help(function)
or?function
describe what is being done in each section of the code -
Commit your changes
- Relabel and, if it is necessary, create new folders to organise your project for reproducibility
- Check here for further information and examples
- Commit your final changes
- Check your commits history on your Github repository