Closed wfmackey closed 4 years ago
Running at grattan/covid19-results-0522
Results are posted as single columns. To obtain the corresponding columns, you can use scan
and grouped replications. (Or use the columns directly.)
rep_each <- function(x, len) {
rep(x, each = len / length(x), length.out = len)
}
ans <- scan("~/covid19-results-0522/00/02/0/20-1-MB220.csv", what = integer())
DT <- data.table(N = ans)
DT[, Day := rep_each(1:48, .N)]
DT[, State := rep_each(1:9, .N), by = .(Day)]
DT[, Status := rep_each(-2:3, .N), by = .(Day, State)]
DT[, Isolated := rep_len(0:1, .N)]
Oh man this makes me nervous
To be fair that's all I was doing with returner == 2. I just hid it a bit better.
lol okay that's comforting
Sorry -- I think I was meant to provide the
PolicyGrid
for this run. See below.If you've started it already, feel free to ignore this.