Created
April 22, 2022 04:25
-
-
Save Sleepingwell/ecf2a6e8805854ea2c825f94d4801db4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script for extracting various data from https://doi.org/10.1371/journal.pcbi.1005697.s002 | |
#------------------------------------------------------------------------------- | |
# Contact matricies for Australia | |
#------------------------------------------------------------------------------- | |
library(openxlsx) | |
AusOtherLocationsContactMatrix <- as.matrix(read.xlsx( | |
'contact_matrices_152_countries/MUestimates_other_locations_1.xlsx', | |
sheet='Australia')) | |
save(AusOtherLocationsContactMatrix, | |
file='../abcovid/data/AusOtherLocationsContactMatrix.RData', | |
version=2) | |
AusAllLocationsContactMatrix <- as.matrix(read.xlsx( | |
'contact_matrices_152_countries/MUestimates_all_locations_1.xlsx', | |
sheet='Australia')) | |
save(AusAllLocationsContactMatrix, | |
file='../abcovid/data/AusAllLocationsContactMatrix.RData', | |
version=2) | |
AusSchoolContactMatrix <- as.matrix(read.xlsx( | |
'contact_matrices_152_countries/MUestimates_school_1.xlsx', | |
sheet='Australia')) | |
save(AusSchoolContactMatrix, | |
file='../abcovid/data/AusSchoolContactMatrix.RData', | |
version=2) | |
AusHomeContactMatrix <- as.matrix(read.xlsx( | |
'contact_matrices_152_countries/MUestimates_home_1.xlsx', | |
sheet='Australia')) | |
save(AusHomeContactMatrix, | |
file='../abcovid/data/AusHomeContactMatrix.RData', | |
version=2) | |
AusWorkContactMatrix <- as.matrix(read.xlsx( | |
'contact_matrices_152_countries/MUestimates_work_1.xlsx', | |
sheet='Australia')) | |
save(AusWorkContactMatrix, | |
file='../abcovid/data/AusWorkContactMatrix.RData', | |
version=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment