Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions new_pages/data_used.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,15 @@ See the page on [Standardised rates](standardization.qmd). You can load the data

```{r, eval=F}
# install/load the rio package
pacman::p_load(rio)
pacman::p_load(rio, tidyverse)

##############
# Country A
##############
# import demographics for country A directly from Github
A_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics.csv")
A_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics.csv") %>%
mutate(Country = "A") %>%
select(Country, everything())

# import deaths for country A directly from Github
A_deaths <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/deaths_countryA.csv")
Expand All @@ -247,7 +249,9 @@ A_deaths <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/da
# Country B
##############
# import demographics for country B directly from Github
B_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics_2.csv")
B_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics_2.csv", format = ";") %>%
mutate(Country = "B") %>%
select(Country, everything())

# import deaths for country B directly from Github
B_deaths <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/deaths_countryB.csv")
Expand Down
8 changes: 6 additions & 2 deletions new_pages/standardization.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,17 @@ See the [Download handbook and data](data_used.qmd) page for instructions on how

```{r, eval=F}
# import demographics for country A directly from Github
A_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics.csv")
A_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics.csv") %>%
mutate(Country = "A") %>%
select(Country, everything())

# import deaths for country A directly from Github
A_deaths <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/deaths_countryA.csv")

# import demographics for country B directly from Github
B_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics_2.csv")
B_demo <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/country_demographics_2.csv", format = ";") %>%
mutate(Country = "B") %>%
select(Country, everything())

# import deaths for country B directly from Github
B_deaths <- import("https://github.com/appliedepi/epirhandbook_eng/raw/master/data/standardization/deaths_countryB.csv")
Expand Down