@@ -41,7 +41,7 @@ For example, let's see what kind of smoothed signals come out of the [facebook s
4141
4242``` {r}
4343cm <- covidcast_meta() %>%
44- fetch_tbl () %>%
44+ fetch () %>%
4545 dplyr::filter(grepl("smoothed", signal), data_source == "fb-survey")
4646```
4747
@@ -62,7 +62,7 @@ covidcast(
6262 time_type = "day",
6363 time_values = epirange(20201221, 20201225),
6464 geo_values = "06059"
65- ) %>% fetch_tbl ()
65+ ) %>% fetch ()
6666```
6767
6868County geo_values are [ FIPS codes] ( https://en.wikipedia.org/wiki/List_of_United_States_FIPS_codes_by_county ) and are discussed more here: < https://cmu-delphi.github.io/delphi-epidata/api/covidcast_geography.html > . The example above is for Orange County, California.
@@ -76,7 +76,7 @@ covidcast(
7676 time_type = "day",
7777 time_values = epirange(20201221, 20201225),
7878 geo_values = "*"
79- ) %>% fetch_tbl ()
79+ ) %>% fetch ()
8080```
8181
8282## Other Covid Endpoints
@@ -90,17 +90,17 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/covid_hosp_f
9090Example calls:
9191
9292``` {r}
93- covid_hosp_facility_lookup(city = "southlake") %>% fetch_tbl ()
93+ covid_hosp_facility_lookup(city = "southlake") %>% fetch ()
9494```
9595
9696``` {r}
97- covid_hosp_facility_lookup(state = "WY") %>% fetch_tbl ()
97+ covid_hosp_facility_lookup(state = "WY") %>% fetch ()
9898```
9999
100100A non-example (there is no city called New York in Wyoming);
101101
102102``` {r}
103- covid_hosp_facility_lookup(state = "WY", city = "New York") %>% fetch_tbl ()
103+ covid_hosp_facility_lookup(state = "WY", city = "New York") %>% fetch ()
104104```
105105
106106### COVID-19 Hospitalization by Facility
@@ -115,7 +115,7 @@ Example call:
115115covid_hosp_facility(
116116 hospital_pks = "100075",
117117 collection_weeks = epirange(20200101, 20200501)
118- ) %>% fetch_tbl ()
118+ ) %>% fetch ()
119119```
120120
121121### COVID-19 Hospitalization by State
@@ -127,7 +127,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/covid_hosp.h
127127Example call:
128128
129129``` {r}
130- covid_hosp_state_timeseries(states = "MA", dates = "20200510") %>% fetch_tbl ()
130+ covid_hosp_state_timeseries(states = "MA", dates = "20200510") %>% fetch ()
131131```
132132
133133## Flu Endpoints
@@ -141,7 +141,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/delphi.html>
141141Example call:
142142
143143``` {r}
144- del <- delphi(system = "ec", epiweek = 201501) %>% fetch_classic ()
144+ del <- delphi(system = "ec", epiweek = 201501) %>% fetch ()
145145names(del$epidata$forecast)
146146```
147147
@@ -154,7 +154,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/flusurv.html
154154Example call:
155155
156156``` {r}
157- flusurv(locations = "ca", epiweeks = 202001) %>% fetch_tbl ()
157+ flusurv(locations = "ca", epiweeks = 202001) %>% fetch ()
158158```
159159
160160### Fluview data
@@ -166,7 +166,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/fluview.html
166166Example call:
167167
168168``` {r}
169- fluview(regions = "nat", epiweeks = epirange(201201, 202001)) %>% fetch_tbl ()
169+ fluview(regions = "nat", epiweeks = epirange(201201, 202001)) %>% fetch ()
170170```
171171
172172### Fluview virological data from clinical labs
@@ -178,7 +178,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/fluview_clin
178178Example call:
179179
180180``` {r}
181- fluview_clinical(regions = "nat", epiweeks = epirange(201601, 201701)) %>% fetch_tbl ()
181+ fluview_clinical(regions = "nat", epiweeks = epirange(201601, 201701)) %>% fetch ()
182182```
183183
184184### Fluview metadata
@@ -188,7 +188,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/fluview_meta
188188Example call:
189189
190190``` {r}
191- fluview_meta() %>% fetch_tbl ()
191+ fluview_meta() %>% fetch ()
192192```
193193
194194### Google Flu Trends data
@@ -198,7 +198,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/gft.html>
198198Function reference: < https://cmu-delphi.github.io/epidatr/reference/gft.html >
199199
200200``` {r}
201- gft(locations = "hhs1", epiweeks = epirange(201201, 202001)) %>% fetch_tbl ()
201+ gft(locations = "hhs1", epiweeks = epirange(201201, 202001)) %>% fetch ()
202202```
203203
204204### ECDC ILI
@@ -208,7 +208,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/ecdc_ili.html>
208208Function reference: < https://cmu-delphi.github.io/epidatr/reference/ecdc_ili.html >
209209
210210``` {r}
211- ecdc_ili(regions = "Armenia", epiweeks = 201840) %>% fetch_tbl ()
211+ ecdc_ili(regions = "Armenia", epiweeks = 201840) %>% fetch ()
212212```
213213
214214### KCDC ILI
@@ -218,7 +218,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/kcdc_ili.html>
218218Function reference: < https://cmu-delphi.github.io/epidatr/reference/kcdc_ili.html >
219219
220220``` {r}
221- kcdc_ili(regions = "ROK", epiweeks = 200436) %>% fetch_tbl ()
221+ kcdc_ili(regions = "ROK", epiweeks = 200436) %>% fetch ()
222222```
223223
224224### NIDSS Flu
@@ -228,7 +228,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/nidss_flu.html>
228228Function reference: < https://cmu-delphi.github.io/epidatr/reference/nidss_flu.html >
229229
230230``` {r}
231- nidss_flu(regions = "taipei", epiweeks = epirange(200901, 201301)) %>% fetch_tbl ()
231+ nidss_flu(regions = "taipei", epiweeks = epirange(200901, 201301)) %>% fetch ()
232232```
233233
234234### ILI Nearby Nowcast
@@ -238,7 +238,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/nowcast.html>
238238Function reference: < https://cmu-delphi.github.io/epidatr/reference/nowcast.html >
239239
240240``` {r}
241- nowcast(locations = "ca", epiweeks = epirange(202201, 202319)) %>% fetch_tbl ()
241+ nowcast(locations = "ca", epiweeks = epirange(202201, 202319)) %>% fetch ()
242242```
243243
244244## Dengue Endpoints
@@ -252,7 +252,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/dengue_nowca
252252Example call:
253253
254254``` {r}
255- dengue_nowcast(locations = "pr", epiweeks = epirange(201401, 202301)) %>% fetch_tbl ()
255+ dengue_nowcast(locations = "pr", epiweeks = epirange(201401, 202301)) %>% fetch ()
256256```
257257
258258### NIDSS dengue
@@ -262,7 +262,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/nidss_dengue.html>
262262Function reference: < https://cmu-delphi.github.io/epidatr/reference/nidss_dengue.html >
263263
264264``` {r}
265- nidss_dengue(locations = "taipei", epiweeks = epirange(200301, 201301)) %>% fetch_tbl ()
265+ nidss_dengue(locations = "taipei", epiweeks = epirange(200301, 201301)) %>% fetch ()
266266```
267267
268268## PAHO Dengue
@@ -272,7 +272,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/paho_dengue.html>
272272Function reference: < https://cmu-delphi.github.io/epidatr/reference/paho_dengue.html >
273273
274274``` {r, eval=FALSE}
275- paho_dengue(regions = "ca", epiweeks = epirange(200201, 202319)) %>% fetch_tbl ()
275+ paho_dengue(regions = "ca", epiweeks = epirange(200201, 202319)) %>% fetch ()
276276```
277277
278278## Other Endpoints
@@ -284,7 +284,7 @@ API docs: <https://cmu-delphi.github.io/delphi-epidata/api/wiki.html>
284284Function reference: < https://cmu-delphi.github.io/epidatr/reference/wiki.html >
285285
286286``` {r}
287- wiki(language = "en", articles = "influenza", epiweeks = epirange(202001, 202319)) %>% fetch_tbl ()
287+ wiki(language = "en", articles = "influenza", epiweeks = epirange(202001, 202319)) %>% fetch ()
288288```
289289
290290# Private methods
@@ -300,7 +300,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_cdc.html
300300Example call:
301301
302302``` {r, eval=FALSE}
303- pvt_cdc(auth = Sys.getenv("SECRET_API_AUTH_CDC"), epiweeks = epirange(202003, 202304), locations = "ma") %>% fetch_tbl ()
303+ pvt_cdc(auth = Sys.getenv("SECRET_API_AUTH_CDC"), epiweeks = epirange(202003, 202304), locations = "ma") %>% fetch ()
304304```
305305
306306### Dengue Digital Surveillance Sensors
@@ -312,7 +312,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/dengue_senso
312312Example call:
313313
314314``` {r, eval=FALSE}
315- pvt_dengue_sensors(auth = Sys.getenv("SECRET_API_AUTH_SENSORS"), names = "ght", locations = "ag", epiweeks = epirange(201404, 202004)) %>% fetch_tbl ()
315+ pvt_dengue_sensors(auth = Sys.getenv("SECRET_API_AUTH_SENSORS"), names = "ght", locations = "ag", epiweeks = epirange(201404, 202004)) %>% fetch ()
316316```
317317
318318### Google Health Trends
@@ -324,7 +324,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_ght.html
324324Example call:
325325
326326``` {r, eval=FALSE}
327- pvt_ght(auth = Sys.getenv("SECRET_API_AUTH_GHT"), epiweeks = epirange(199301, 202304), locations = "ma", query = "how to get over the flu") %>% fetch_tbl ()
327+ pvt_ght(auth = Sys.getenv("SECRET_API_AUTH_GHT"), epiweeks = epirange(199301, 202304), locations = "ma", query = "how to get over the flu") %>% fetch ()
328328```
329329
330330### NoroSTAT metadata
@@ -336,7 +336,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_meta_nor
336336Example call:
337337
338338``` {r, eval=FALSE}
339- pvt_meta_norostat(auth = Sys.getenv("SECRET_API_AUTH_NOROSTAT")) %>% fetch_classic ()
339+ pvt_meta_norostat(auth = Sys.getenv("SECRET_API_AUTH_NOROSTAT")) %>% fetch ()
340340```
341341
342342### NoroSTAT data
@@ -348,7 +348,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_norostat
348348Example call:
349349
350350``` {r, eval=FALSE}
351- pvt_norostat(auth = Sys.getenv("SECRET_API_AUTH_NOROSTAT"), locations = "1", epiweeks = 201233) %>% fetch_classic ()
351+ pvt_norostat(auth = Sys.getenv("SECRET_API_AUTH_NOROSTAT"), locations = "1", epiweeks = 201233) %>% fetch ()
352352
353353```
354354
@@ -361,7 +361,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_quidel.h
361361Example call:
362362
363363``` {r, eval=FALSE}
364- pvt_quidel(auth = Sys.getenv("SECRET_API_AUTH_QUIDEL"), locations = "hhs1", epiweeks = epirange(200301, 202105)) %>% fetch_tbl ()
364+ pvt_quidel(auth = Sys.getenv("SECRET_API_AUTH_QUIDEL"), locations = "hhs1", epiweeks = epirange(200301, 202105)) %>% fetch ()
365365```
366366
367367### Sensors
@@ -373,7 +373,7 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_sensors.
373373Example call:
374374
375375``` {r, eval=FALSE}
376- pvt_sensors(auth = Sys.getenv("SECRET_API_AUTH_SENSORS"), names = "sar3", locations = "nat", epiweeks = epirange(200301, 202105)) %>% fetch_tbl ()
376+ pvt_sensors(auth = Sys.getenv("SECRET_API_AUTH_SENSORS"), names = "sar3", locations = "nat", epiweeks = epirange(200301, 202105)) %>% fetch ()
377377```
378378
379379### Twitter
@@ -385,5 +385,5 @@ Function reference: <https://cmu-delphi.github.io/epidatr/reference/pvt_twitter.
385385Example call:
386386
387387``` {r, eval=FALSE}
388- pvt_twitter(auth = Sys.getenv("SECRET_API_AUTH_TWITTER"), locations = "nat", epiweeks = epirange(200301, 202105)) %>% fetch_tbl ()
388+ pvt_twitter(auth = Sys.getenv("SECRET_API_AUTH_TWITTER"), locations = "nat", epiweeks = epirange(200301, 202105)) %>% fetch ()
389389```
0 commit comments