get_trends {rtweet} | R Documentation |
Get Twitter trends data.
Description
Usage
get_trends(
woeid = 1,
lat = NULL,
lng = NULL,
exclude_hashtags = FALSE,
token = NULL,
parse = TRUE
)
Arguments
woeid |
Numeric, WOEID (Yahoo! Where On Earth ID) or character
string of desired town or country. Users may also supply latitude
and longitude coordinates to fetch the closest available trends
data given the provided location. Latitude/longitude coordinates
should be provided as WOEID value consisting of 2 numeric values
or via one latitude value and one longitude value (to the
appropriately named parameters). To browse all available trend
places, see |
lat |
Optional alternative to WOEID. Numeric, latitude in degrees. If two coordinates are provided for WOEID, this function will coerce the first value to latitude. |
lng |
Optional alternative to WOEID. Numeric, longitude in degrees. If two coordinates are provided for WOEID, this function will coerce the second value to longitude. |
exclude_hashtags |
Logical, indicating whether or not to exclude hashtags. Defaults to FALSE–meaning, hashtags are included in returned trends. |
token |
Use this to override authentication for
a single API call. In many cases you are better off changing the
default for all calls. See |
parse |
If |
Value
Tibble data frame of trends data for a given geographical area.
See Also
Other trends:
trends_available()