API docs: https://cmu-delphi.github.io/delphi-epidata/api/gft.html
Obtains estimates of inluenza activity based on volume of certain search queries from Google.
Usage
pub_gft(locations, epiweeks = "*", fetch_args = fetch_args_list())Arguments
- locations
character. List of locations to fetch.
- epiweeks
timeset. Epiweeks to fetch. Supportsepirange()and defaults to all ("*") dates. Format asepirange(startweek, endweek), where startweek and endweek are of the form YYYYWW (string or numeric).- fetch_args
fetch_args. Additional arguments to pass tofetch(). Seefetch_args_list()for details.
Details
Google has discontinued Flu Trends and this is now a static endpoint. Possibile input for locations can be found in https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/regions.txt, https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/states.txt, and https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/cities.txt.
Examples
pub_gft(locations = "hhs1", epiweeks = epirange(201201, 202001))
#> # A tibble: 189 × 3
#> location epiweek num
#> <chr> <date> <dbl>
#> 1 hhs1 2012-01-01 1567
#> 2 hhs1 2012-01-08 1339
#> 3 hhs1 2012-01-15 1220
#> 4 hhs1 2012-01-22 1271
#> 5 hhs1 2012-01-29 1181
#> 6 hhs1 2012-02-05 994
#> 7 hhs1 2012-02-12 1091
#> 8 hhs1 2012-02-19 1030
#> 9 hhs1 2012-02-26 856
#> 10 hhs1 2012-03-04 799
#> # ℹ 179 more rows