Skip to content

Commit a8b81bb

Browse files
committed
versioned data blurb and vignette stub
1 parent 6a8a224 commit a8b81bb

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

vignettes/epidatr.Rmd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,29 @@ epidata <- pub_covidcast(
146146
knitr::kable(head(epidata))
147147
```
148148

149+
## Getting versioned data
150+
151+
The Epidata API stores a historical record of all data, including corrections and updates, which is particularly useful for accurately backtesting forecasting models. To fetch versioned data
152+
153+
We can also request data for a single location at a time, via the `geo_values` argument.
154+
155+
```{r, eval = FALSE}
156+
# Obtain the smoothed covid-like illness (CLI) signal from the COVID-19
157+
# Trends and Impact survey for Pennsylvania as it was on 2021-06-01
158+
pub_covidcast(
159+
source = "fb-survey",
160+
signals = "smoothed_cli",
161+
geo_type = "state",
162+
time_type = "day",
163+
geo_values = "pa",
164+
time_values = epirange(20210105, 20210410),
165+
as_of = "2021-06-01"
166+
)
167+
```
168+
169+
See `vignette("versioned-data")` for more information and more ways to specify versioned data.
170+
171+
149172
## Plotting
150173

151174
Because the output data is in a standard `tibble` format, we can easily plot

vignettes/versioned-data.Rmd

Whitespace-only changes.

0 commit comments

Comments
 (0)