pub_gft {epidatr}R Documentation

Google Flu Trends flu search volume

Description

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. Locations to fetch.

epiweeks

timeset Epiweeks to fetch. Defaults to all ("*") dates.

fetch_args

fetch_args. Additional arguments to pass to fetch().

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.

Value

tibble::tibble

Examples

## Not run: 
pub_gft(locations = "hhs1", epiweeks = epirange(201201, 202001))

## End(Not run)

[Package epidatr version 1.1.1 Index]