forked from statsbylopez/BlogPosts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.R
74 lines (63 loc) · 2.4 KB
/
config.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# local configuration hack
if (Sys.info ()["user"] == "Brian") {
# For Brian
constants <- "C:/Users/Brian/Dropbox/Sim/Constants/"
output <- "C:/Users/Brian/Dropbox/Sim/2018 Outcomes/"
gamefiles <- "C:/Users/Brian/Dropbox/sim/Model/gamedata/"
gamedates <- "C:/Users/Brian/Dropbox/sim/Model/constants/"
ModelLocation <- "C:/Users/Brian/Dropbox/Sim/Model/"
mljcode <- "C:/Users/Brian/Dropbox/Sim/"
}
if (Sys.info()["user"] == "mlopez1") {
# For Mike
constants <- "~/Dropbox/Sim/Constants/"
output <- "~/Dropbox/Sim/2018 Outcomes/"
gamefiles <- "~/Dropbox/sim/Model/gamedata/"
gamedates <- "~/Dropbox/sim/Model/constants/"
ModelLocation <- "~/Dropbox/Sim/Model/"
mljcode <- "~/Dropbox/Sim/"
}
if (Sys.info()["user"] == "elopez") {
# For Erin
constants <- "C:/Users/elopez/Constants/"
output <- "C:/Users/elopez/Dropbox/2018 Outcomes/"
gamefiles <- "C:/Users/elopez/Dropbox/Sim/Model/gamedata/"
gamedates <- "C:/Users/elopez/Dropbox/Sim/Model/constants/"
ModelLocation <- "C:/elopez/Dropbox/Sim/Model/"
mljcode <- "C:/elopez/Dropbox/Sim/"
}
if (Sys.info ()["user"] == "jenkins") {
# For Apple Sim Box
constants <- "/Volumes/Mac_HD/Dropbox/Sim/Constants/"
output <- "/Volumes/Mac_HD/Dropbox/Sim/Model/2018 Outcomes/"
gamefiles <- "/Volumes/Mac_HD/Dropbox/Sim/Model/gamedata/"
gamedates <- "/Volumes/Mac_HD/Dropbox/Sim/Model/constants/"
ModelLocation <- "/Volumes/Mac_HD/Dropbox/Sim/Model"
mljcode <- "/Volumes/Mac_HD/Dropbox/Sim"
}
if (Sys.info()["user"] == "doherbr") {
# For doherbr
constants <- "C:/Users/doherbr/desktop/Dropbox/Sim/Constants/"
output <- "C:/Users/doherbr/desktop/Dropbox/Sim/2018 Outcomes/"
gamefiles <- "C:/Users/doherbr/desktop/Dropbox/sim/Model/gamedata/"
gamedates <- "C:/Users/doherbr/desktop/Dropbox/sim/Model/constants/"
ModelLocation <- "C:/Users/doherbr/desktop/Dropbox/Sim/Model/"
mljcode <- "C:/Users/doherbr/desktop/Dropbox/Sim/"
}
if (Sys.info ()["user"] == "btdoh"){
# For brian laptop
constants <- "C:/Users/btdoh/Dropbox/Sim/Constants/"
output <- "C:/Users/btdoh/Dropbox/Sim/2018 Outcomes/"
gamefiles <- "C:/Users/btdoh/Dropbox/sim/Model/gamedata/"
gamedates <- "C:/Users/btdoh/Dropbox/sim/Model/constants/"
ModelLocation <- "C:/Users/btdoh/Dropbox/Sim/Model/"
mljcode <- "C:/Users/btdoh/Dropbox/Sim/"
}
library(knitr)
library(readxl)
library(readr)
library(profvis)
library(dplyr)
library(doParallel)
library(ggplot2)
library(tidyr)