Skip to content

Commit 2ee8867

Browse files
authored
Merge pull request #292 from cmu-delphi/dshemetov-patch-1
docs: improve strange wording on getting started page
2 parents 3fe43da + d2995c7 commit 2ee8867

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

vignettes/epidatr.Rmd

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ pub_covidcast(
117117
)
118118
```
119119

120-
We can fetch a subset of states by listing out the desired locations:
120+
Alternatively, we can fetch the full time series for a subset of states by
121+
listing out the desired locations in the `geo_value` argument and using `*`
122+
in the `time_values` argument:
121123

122124
```{r, eval = FALSE}
123125
# Obtain the most up-to-date version of the smoothed covid-like illness (CLI)
@@ -128,24 +130,8 @@ pub_covidcast(
128130
geo_type = "state",
129131
time_type = "day",
130132
geo_values = c("pa", "ca", "fl"),
131-
time_values = epirange(20210105, 20210410)
132-
)
133-
```
134-
135-
We can also request data for a single location at a time, via the `geo_values` argument.
136-
137-
```{r}
138-
# Obtain the most up-to-date version of the smoothed covid-like illness (CLI)
139-
# signal from the COVID-19 Trends and Impact survey for Pennsylvania
140-
epidata <- pub_covidcast(
141-
source = "fb-survey",
142-
signals = "smoothed_cli",
143-
geo_type = "state",
144-
time_type = "day",
145-
geo_values = "pa",
146-
time_values = epirange(20210105, 20210410)
133+
time_values = "*"
147134
)
148-
knitr::kable(head(epidata))
149135
```
150136

151137
## Getting versioned data

0 commit comments

Comments
 (0)