Skip to content

Commit

Permalink
Merge pull request #292 from cmu-delphi/dshemetov-patch-1
Browse files Browse the repository at this point in the history
docs: improve strange wording on getting started page
  • Loading branch information
dshemetov authored Aug 29, 2024
2 parents 3fe43da + d2995c7 commit 2ee8867
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions vignettes/epidatr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ pub_covidcast(
)
```

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

```{r, eval = FALSE}
# Obtain the most up-to-date version of the smoothed covid-like illness (CLI)
Expand All @@ -128,24 +130,8 @@ pub_covidcast(
geo_type = "state",
time_type = "day",
geo_values = c("pa", "ca", "fl"),
time_values = epirange(20210105, 20210410)
)
```

We can also request data for a single location at a time, via the `geo_values` argument.

```{r}
# Obtain the most up-to-date version of the smoothed covid-like illness (CLI)
# signal from the COVID-19 Trends and Impact survey for Pennsylvania
epidata <- pub_covidcast(
source = "fb-survey",
signals = "smoothed_cli",
geo_type = "state",
time_type = "day",
geo_values = "pa",
time_values = epirange(20210105, 20210410)
time_values = "*"
)
knitr::kable(head(epidata))
```

## Getting versioned data
Expand Down

0 comments on commit 2ee8867

Please sign in to comment.