File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ pub_covidcast(
117
117
)
118
118
```
119
119
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:
121
123
122
124
``` {r, eval = FALSE}
123
125
# Obtain the most up-to-date version of the smoothed covid-like illness (CLI)
@@ -128,24 +130,8 @@ pub_covidcast(
128
130
geo_type = "state",
129
131
time_type = "day",
130
132
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 = "*"
147
134
)
148
- knitr::kable(head(epidata))
149
135
```
150
136
151
137
## Getting versioned data
You can’t perform that action at this time.
0 commit comments