Skip to contents

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. Supports epirange() and defaults to all ("*") dates. Format as epirange(startweek, endweek), where startweek and endweek are of the form YYYYWW (string or numeric).

fetch_args

fetch_args. Additional arguments to pass to fetch(). See fetch_args_list() for details.

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