Skip to content

Commit 4b7fdeb

Browse files
committed
Merge branch 'use-delphidocs' of https://github.com/cmu-delphi/epidatr into use-delphidocs
2 parents 05af3b1 + 947e8fe commit 4b7fdeb

File tree

5 files changed

+13
-27
lines changed

5 files changed

+13
-27
lines changed

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 1.1.1
2-
Date: 2024-03-02 01:36:14 UTC
3-
SHA: 75ae42aed7a035d184af69129e049c31e76e5f3b
1+
Version: 1.2.0
2+
Date: 2024-06-20 18:52:31 UTC
3+
SHA: 9a79a8bcb534ccd915a1189294cd6131053bc666

R/endpoints.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ pub_covid_hosp_facility_lookup <- function(
163163
#' )
164164
#'
165165
#' pub_covid_hosp_facility(
166-
#' hospital_pks = "100075",
167-
#' collection_weeks = epirange(202001, 202005)
166+
#' hospital_pks = "050063",
167+
#' collection_weeks = epirange(20240101, 20240301)
168168
#' )
169169
#' }
170170
#' @param hospital_pks character. Facility identifiers.
@@ -1848,7 +1848,7 @@ pub_nidss_flu <- function(
18481848
#' \dontrun{
18491849
#' pvt_norostat(
18501850
#' auth = Sys.getenv("SECRET_API_AUTH_NOROSTAT"),
1851-
#' locations = "1",
1851+
#' locations = "Minnesota, Ohio, Oregon, Tennessee, and Wisconsin",
18521852
#' epiweeks = 201233
18531853
#' )
18541854
#' }

man/pub_covid_hosp_facility.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pvt_norostat.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)