Skip to content

Miscellaneous minor edits #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions slides/day1-afternoon.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ ggplot(snapshots |> filter(!latest),

## Backfill American edition

* Again, we can see a similar systematic underestimation problem for COVID-19 morality rates in CA. <!-- 2023-2024 -->
* Again, we can see a similar systematic underestimation problem for COVID-19 mortality rates in CA. <!-- 2023-2024 -->

* This plot also illustrates the [**revision process**]{.primary} - how the reported mortality changes & increases across multiple updates until it stabilizes at the final value (black line).

Expand Down Expand Up @@ -1907,7 +1907,7 @@ process_covid_data <- function(Date) {
* [**Tibble Creation**]{.primary}: Constructs a tibble with `geo_value`, `time_value`, `version`, and `case_rate_7d_av` to later compile into an `epi_archive` (you can think of an `epi_archive` as being a comprised of many `epi_df`s).


## Fetch Data - Process eange of dates
## Fetch Data - Process range of dates
* Note that `process_covid_data()` works on one date at a time.
* So now, we need a function that iterates over a date range and applies `process_covid_data()` to each date & combines the resulting tibbles into an `epi_archive`.
* We call this function `process_data_for_date_range()`...
Expand Down Expand Up @@ -1956,7 +1956,7 @@ Here's a summary of what `process_data_for_date_range()` does:
* Now, let's run the function & inspect the resulting `epi_archive` of 7-day avg. COVID-19 case counts:
* Expect building the archive to some time (enough for a cup of coffee or to meditate on life).

<!-- To wonder why you chose Expect building the archive to take a nontrivial amount of time (enough for a cup of coffee or to wonder why you chose coding in the first place). -->
<!-- Expect building the archive to take a nontrivial amount of time (enough for a cup of coffee or to wonder why you chose coding in the first place). -->
```{r run-fun-process-data-range}
#| echo: true
# Example usage: process data between Jan. 10, 2021, and Dec. 1, 2021
Expand Down