Skip to content

Commit acc9891

Browse files
committed
fix: renable api blog entry
1 parent 9a03573 commit acc9891

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

content/blog/2020-08-28-api.Rmd

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -285,21 +285,20 @@ can change for _weeks_ as new data arrives:
285285
```{r q-versioning, warning=FALSE, message=FALSE, cache=TRUE}
286286
library(covidcast)
287287
library(dplyr)
288-
# DISABLED for now since the API is not ready
289288
query_date <- "2020-08-01"
290-
# covidcast_signal(
291-
# data_source = "quidel",
292-
# signal = "covid_ag_raw_pct_positive",
293-
# start_day = query_date,
294-
# end_day = query_date,
295-
# geo_type = "state",
296-
# geo_value = "ny",
297-
# issues = c(query_date, "2020-09-04")) %>%
298-
# select(time_value, value, sample_size, issue, lag) %>%
299-
# distinct(value, .keep_all=TRUE) %>%
300-
# knitr::kable("html", digits = 2,
301-
# col.names = c("Test date", "Positivity rate (%)", "Sample size",
302-
# "Issued on", "Lag (days)"))
289+
covidcast_signal(
290+
data_source = "quidel",
291+
signal = "covid_ag_raw_pct_positive",
292+
start_day = query_date,
293+
end_day = query_date,
294+
geo_type = "state",
295+
geo_value = "ny",
296+
issues = c(query_date, "2020-09-04")) %>%
297+
select(time_value, value, sample_size, issue, lag) %>%
298+
distinct(value, .keep_all=TRUE) %>%
299+
knitr::kable("html", digits = 2,
300+
col.names = c("Test date", "Positivity rate (%)", "Sample size",
301+
"Issued on", "Lag (days)"))
303302
```
304303

305304
Many data sources are subject to revisions:

0 commit comments

Comments
 (0)