Skip to content

Commit 79e5713

Browse files
authored
Merge branch 'dev' into use-delphidocs
2 parents 0515ce6 + 0b34808 commit 79e5713

File tree

6 files changed

+15
-29
lines changed

6 files changed

+15
-29
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
#' }

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The [Delphi Epidata API](https://cmu-delphi.github.io/delphi-epidata/)
1616
provides real-time access to epidemiological surveillance data for
1717
influenza, COVID-19, and other diseases from both official government
1818
sources such as the [Centers for Disease Control and Prevention
19-
(CDC)](https://data.cdc.gov/), private partners
19+
(CDC)](https://archive.cdc.gov/), private partners
2020
such as [Facebook (now
2121
Meta)](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/)
2222
and [Change Healthcare](https://www.changehealthcare.com/), and other
@@ -82,7 +82,7 @@ pak::pkg_install("cmu-delphi/epidatr@dev")
8282
```
8383

8484
Our CRAN listing is
85-
[here](https://CRAN.R-project.org/package=epidatr/index.html).
85+
[here](https://CRAN.R-project.org/package=epidatr).
8686

8787
### API Keys
8888

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)