Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/blog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths: # run only when an Rmd file changes
- "**.Rmd"
- "environment.yml"
- ".github/workflows/ci.yaml"
- ".github/workflows/blog.yaml"

jobs:
build:
Expand Down
20 changes: 10 additions & 10 deletions content/blog/2015-07-23-template-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@
see <a href="http://rmarkdown.rstudio.com" class="uri">http://rmarkdown.rstudio.com</a>.</p>
<p>You can embed an R code chunk like this:</p>
<pre class="r"><code>summary(cars)
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
fit &lt;- lm(dist ~ speed, data = cars)
fit
##
##
## Call:
## lm(formula = dist ~ speed, data = cars)
##
##
## Coefficients:
## (Intercept) speed
## (Intercept) speed
## -17.579 3.932</code></pre>
<div id="including-plots" class="section level2">
<h2>Including Plots</h2>
Expand Down Expand Up @@ -147,7 +147,7 @@ <h3>Linking to other pages and blog posts:</h3>
</div>
<div id="linking-to-the-api-doc" class="section level3">
<h3>Linking to the API doc:</h3>
<p>there is another shortcode for creating an api link, e.g. 
<p>there is another shortcode for creating an api link, e.g.
{{< apireflink "/" "public API" >}} or
{{< apireflink "api/covidcast-signals/doctor-visits.html" "Doctor's Visits signal" >}}</p>
</div>
Expand Down
27 changes: 14 additions & 13 deletions content/blog/2020-08-28-api.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -285,20 +285,21 @@ can change for _weeks_ as new data arrives:
```{r q-versioning, warning=FALSE, message=FALSE, cache=TRUE}
library(covidcast)
library(dplyr)
# DISABLED for now since the API is not ready
query_date <- "2020-08-01"
covidcast_signal(
data_source = "quidel",
signal = "covid_ag_raw_pct_positive",
start_day = query_date,
end_day = query_date,
geo_type = "state",
geo_value = "ny",
issues = c(query_date, "2020-09-04")) %>%
select(time_value, value, sample_size, issue, lag) %>%
distinct(value, .keep_all=TRUE) %>%
knitr::kable("html", digits = 2,
col.names = c("Test date", "Positivity rate (%)", "Sample size",
"Issued on", "Lag (days)"))
# covidcast_signal(
# data_source = "quidel",
# signal = "covid_ag_raw_pct_positive",
# start_day = query_date,
# end_day = query_date,
# geo_type = "state",
# geo_value = "ny",
# issues = c(query_date, "2020-09-04")) %>%
# select(time_value, value, sample_size, issue, lag) %>%
# distinct(value, .keep_all=TRUE) %>%
# knitr::kable("html", digits = 2,
# col.names = c("Test date", "Positivity rate (%)", "Sample size",
# "Issued on", "Lag (days)"))
```

Many data sources are subject to revisions:
Expand Down