Skip to content

Commit 04c57b7

Browse files
committed
add example showing use of list of dates with issues
1 parent 433b748 commit 04c57b7

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

DESCRIPTION

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Suggests:
4545
ggplot2,
4646
knitr,
4747
maps,
48+
mapproj,
4849
rmarkdown,
4950
rlang,
5051
testthat (>= 3.1.5),

vignettes/epidatr.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ggplot(epidata, aes(x = time_value, y = value)) +
192192
`ggplot2` can also be used to [create choropleths](https://r-graphics.org/recipe-miscgraph-choropleth).
193193

194194

195-
```{r class.source = "fold-hide", out.height="65%"}
195+
```{r, class.source = "fold-hide", out.height="65%"}
196196
library(maps)
197197
198198
# Obtain the most up-to-date version of the smoothed covid-like illness (CLI)

vignettes/versioned-data.Rmd

+14
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ Note that these results include only data issued or updated between
110110
2020-04-15, and never updated, a query for issues between 2020-05-01 and
111111
2020-05-15 will not include that value among its results.
112112

113+
The `issues` parameter also accepts a list of dates.
114+
115+
```{r, eval = FALSE}
116+
pub_covidcast(
117+
source = "doctor-visits",
118+
signals = "smoothed_adj_cli",
119+
time_type = "day",
120+
time_values = epirange("2020-05-01", "2020-05-01"),
121+
geo_type = "state",
122+
geo_values = "pa",
123+
issues = c("2020-05-07", "2020-05-09", "2020-05-15")
124+
)
125+
```
126+
113127

114128
### Observations issued with a specific lag
115129

0 commit comments

Comments
 (0)