forked from daattali/statsTerrorismProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeFile.R
19 lines (16 loc) · 884 Bytes
/
MakeFile.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## clean all output from previous runs of scripts
## there is one final we create in the main directory (the processed dataset),
## but the rest of the output is all in the 'results' directory
outputs <- c("globalterrorismdb_clean.csv")
file.remove(outputs)
unlink("results", recursive = TRUE)
# now re-create the results directory
dir.create(file.path("results"), showWarnings = FALSE)
# script 0 only has to be run once on a machine, it simply installs all required packages
#source("00_installPackages.R")
## run all scripts
source("01_preprocessData.R") ## can take up to a minute to run because of reading a big dataset
source("02_analysisPlots.R") ## analyse global terrorism using plots
source("03_analysisMaps.R") ## show terrorism on a world map
source("04_integrateGapMinder.R") ## analyse terrorism vs GDP
source("05_israel.R") ## terrorism in Israel