Skip to content

Commit 4ec147b

Browse files
committed
fix typo
1 parent 692b99e commit 4ec147b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

episodes/quantify-transmissibility.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ To use the data, we must format the data to have two columns:
121121
Let's use `{tidyr}` and `{incidence2}` for this:
122122

123123
```{r, warning = FALSE, message = FALSE}
124-
cases_slided <- incidence2::covidregionaldataUK %>%
124+
cases_sliced <- incidence2::covidregionaldataUK %>%
125125
tibble::as_tibble() %>%
126126
# Preprocess missing values
127127
tidyr::replace_na(base::list(cases_new = 0)) %>%
@@ -162,14 +162,14 @@ However, the `incidence2::incidence()` function contains convenient arguments li
162162
In an outbreak situation it is likely we would only have access to the beginning of the input data set. Therefore we assume we only have the first 90 days of this data.
163163

164164
```{r}
165-
plot(cases_slided)
165+
plot(cases_sliced)
166166
```
167167

168-
To pass the outputs from `{incidence2}` to `{EpiNow2}` we need to drop one column from the `cases_slided` object:
168+
To pass the outputs from `{incidence2}` to `{EpiNow2}` we need to drop one column from the `cases_sliced` object:
169169

170170
```{r}
171171
# Drop column for {EpiNow2} input format
172-
cases <- cases_slided %>%
172+
cases <- cases_sliced %>%
173173
dplyr::select(-count_variable)
174174
175175
cases

0 commit comments

Comments
 (0)