Skip to content

Commit 40bc61c

Browse files
committed
Adjust slowstart vignette to use Lithuania data instead of France
1 parent 7ec7979 commit 40bc61c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

vignettes/slowstart.Rmd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,44 +47,44 @@ This function returns daily new and cumulative (total) cases, and where availabl
4747

4848
As for national level data any gaps in reported data are filled with NAs.
4949

50-
For example, data for France Level 1 regions over time can be accessed using:
50+
For example, data for Lithuania Level 1 regions over time can be accessed using:
5151

5252
```{r}
53-
get_regional_data(country = "france")
53+
get_regional_data(country = "lithuania")
5454
```
5555

5656
This data then has the following format:
5757

5858
```{r, echo=FALSE, eval=TRUE, message=FALSE}
5959
start_using_memoise()
6060
knitr::kable(
61-
tail(get_regional_data(country = "france"), n = 5)
61+
tail(get_regional_data(country = "lithuania"), n = 5)
6262
)
6363
```
6464

65-
Alternatively, the same data can be accessed using the underlying class as follows (the France object now contains data at each processing step and the methods used at each step),
65+
Alternatively, the same data can be accessed using the underlying class as follows (the Lithuania object now contains data at each processing step and the methods used at each step),
6666

6767
```{r, eval=FALSE, message=FALSE}
68-
france <- France$new(get = TRUE)
69-
france$return()
68+
lithuania <- Lithuania$new(get = TRUE)
69+
lithuania$return()
7070
```
7171
### Level 1 and Level 2 regions
7272

7373
All countries included in the package (see below,"Coverage") have data for regions at the admin-1 level, the largest administrative unit of the country (e.g. state in the USA). Some countries also have data for smaller areas at the admin-2 level (e.g. county in the USA).
7474

7575
Data for Level 2 units can be returned by using the `level = "2"` argument. The dataset will still show the corresponding Level 1 region.
7676

77-
An example of a country with Level 2 units is France, where Level 2 units are French departments:
77+
An example of a country with Level 2 units is Lithuania, where Level 2 units are Lithuanian municipalities:
7878

7979
```{r}
80-
get_regional_data(country = "france", level = "2")
80+
get_regional_data(country = "lithuania", level = "2")
8181
```
8282

8383
This data again has the following format:
8484

8585
```{r, echo=FALSE, eval=TRUE, message=FALSE}
8686
knitr::kable(
87-
tail(get_regional_data(country = "france", level = "2"), n = 5)
87+
tail(get_regional_data(country = "lithuania", level = "2"), n = 5)
8888
)
8989
```
9090

@@ -93,14 +93,14 @@ knitr::kable(
9393
For totalled data up to the most recent date available, use the `totals` argument.
9494

9595
```{r}
96-
get_regional_data("france", totals = TRUE)
96+
get_regional_data("lithuania", totals = TRUE)
9797
```
9898

9999
This data now has no date variable and reflects the latest total:
100100

101101
```{r, echo=FALSE, eval=TRUE, message=FALSE}
102102
knitr::kable(
103-
tail(get_regional_data(country = "france", totals = TRUE), n = 5)
103+
tail(get_regional_data(country = "lithuania", totals = TRUE), n = 5)
104104
)
105105
```
106106

0 commit comments

Comments
 (0)