Home

Get Started


## You need this R library to use wget
#install.packages("HelpersMG")
library(HelpersMG); packageVersion("HelpersMG") # 3.6

## Current working directory
getwd()

## Create a new working folder
dir.create("/your/path/PlayGround/") # please change it accordingly

## Set working directory
setwd("/your/path/PlayGround/")

## Download the zipped exercise files
wget("https://gdc-web.ethz.ch/OneHealthSS19/downloads/SS19.zip")

## Unzip the data
unzip("SS19.zip") 

## Have a look at the folder content
list.files(getwd())
# These are the files/directories you should see in your working directory:
# (1) SS19.pdf: Lecture notes (version 190810)
# (2) SS19.zip: Zip file you downloaded earlier
# (3) Data: Folder with datsets 
# (4) Literature: A few selected papers
# (5) Scripts: R scripts

## Open R scripts
file.edit("Scripts/Example_Diversity.R")

## Open PDF
path = "Literature/r-cheat-sheet-3.pdf"
## Mac
#system(paste0('open "', path, '"'))
## Windows
#system(paste0('start "', path, '"'))