pvt_twitter {epidatr} | R Documentation |
HealthTweets total and influenza-related tweets
Description
API docs: https://cmu-delphi.github.io/delphi-epidata/api/twitter.html
This is the API documentation for accessing the Twitter Stream endpoint of Delphi’s epidemiological data. Sourced from Healthtweets
Usage
pvt_twitter(
auth,
locations,
...,
time_type = c("day", "week"),
time_values = "*",
fetch_args = fetch_args_list()
)
Arguments
auth |
string. Restricted access key (not the same as API key). |
locations |
character. Locations to fetch. |
... |
not used for values, forces later arguments to bind by name |
time_type |
string. The temporal resolution of the data (either "day" or "week", depending on signal). |
time_values |
|
fetch_args |
|
Value
Examples
## Not run:
pvt_twitter(
auth = Sys.getenv("SECRET_API_AUTH_TWITTER"),
locations = "CA",
time_type = "week",
time_values = epirange(201501, 202001)
)
## End(Not run)
[Package epidatr version 1.2.0 Index]