rtweet (version 0.7.0)

trends_available: Available Twitter trends along with associated WOEID.

Description

Available Twitter trends along with associated WOEID.

Usage

trends_available(token = NULL, parse = TRUE)

Value

Data frame with WOEID column. WOEID is a Yahoo! Where On Earth ID.

Arguments

token

OAuth token. By default token = NULL fetches a non-exhausted token from an environment variable. Find instructions on how to create tokens and setup an environment variable in the tokens vignette (in r, send ?tokens to console).

parse

Logical, indicating whether to return parsed (data.frames) or nested list object. By default, parse = TRUE saves users from the time [and frustrations] associated with disentangling the Twitter API return objects.

See Also

Other trends: get_trends()

Examples

Run this code
if (FALSE) {
## Retrieve available trends
trends <- trends_available()
trends

}

Run the code above in your browser using DataLab