Closed HSalat closed 7 months ago
Currently, after running raw_to_prepared.R, the four ageRescale---.csv files are missing from the zip file.
raw_to_prepared.R
ageRescale---.csv
To restore them, it is necessary to:
SPC_pipelineLAD.R
https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/SPC_pipelineLAD.R#L1-L58 and https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/SPC_pipelineLAD.R#L92-L140
Requires:
addToData2
addToData
(data$pwork[idx]+data$pworkhome[idx])
drawTime
raw_to_prepared_Income.R
First, load the data created during step 3 following: https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/raw_to_prepared_Income.R#L326-341 And use it to run: https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/raw_to_prepared_Income.R#L583-726
This should create the missing files that can then be added to the zip file.
--
Then, to get the Azure data:
source("SPC_loadWorkspace.R") # Select year date <- 2012 # Select lad lad <- "E06000002" lads <- sort(unique(lu$LAD20CD[lu$Country == "England"])) for(i in lads){ lad <- lads[i] source("SPC_pipelineLAD.R") }
Currently, after running
raw_to_prepared.R
, the fourageRescale---.csv
files are missing from the zip file.To restore them, it is necessary to:
1. Run SPENSER for all LADs in England
2. Run the current version of
raw_to_prepared.R
fully3. Run some bits of
SPC_pipelineLAD.R
for all of Englandhttps://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/SPC_pipelineLAD.R#L1-L58 and https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/SPC_pipelineLAD.R#L92-L140
Requires:
addToData2
and it's dependencies (loaded from https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/SPC_functions.R#192-L331) must be replaced byaddToData
(and its dependencies) from https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/raw_to_prepared_Income.R#L216-314, after adaptation (time at work(data$pwork[idx]+data$pworkhome[idx])
l. 262-269-272 should be taken fromdrawTime
instead of the data since it no longer exists there. Maybe other adaptations?)4. Run the rest of
raw_to_prepared_Income.R
First, load the data created during step 3 following: https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/raw_to_prepared_Income.R#L326-341 And use it to run: https://github.com/alan-turing-institute/uatk-spc/blob/main/scripts/data_prep/raw_to_prepared_Income.R#L583-726
This should create the missing files that can then be added to the zip file.
--
Then, to get the Azure data:
5. Run the current version of
SPC_pipelineLAD.R