View source: R/deprecated_functions.R
get_radius_tweets | R Documentation |
This function collects tweets containing strings or hashtags between specified date ranges filtering by radius buffer. Tweet-level data is stored in a data/ path as a series of JSONs beginning "data_"; User-level data is stored as a series of JSONs beginning "users_". If a filename is supplied, this function will save the result as a RDS file, otherwise it will return the results as a data.frame. Note: radius must be less than 25mi.
get_radius_tweets(
query,
radius,
start_tweets,
end_tweets,
bearer_token = get_bearer(),
n = 100,
file = NULL,
data_path = NULL,
bind_tweets = TRUE,
verbose = TRUE,
...
)
query |
string or character vector, search query or queries |
radius |
numeric, a vector of two point coordinates latitude, longitude, and point radius distance (in miles) |
start_tweets |
string, starting date; default to now - 30 days |
end_tweets |
string, ending date; default to now - 30 seconds |
bearer_token |
string, bearer token |
n |
integer, upper limit of tweets to be fetched |
file |
string, name of the resulting RDS file |
data_path |
string, if supplied, fetched data can be saved to the designated path as jsons |
bind_tweets |
If |
verbose |
If |
... |
arguments will be passed to |
a data.frame
## Not run:
bearer_token <- "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
tweets <- get_radius_tweets("happy", radius = c(-0.131969125179604,51.50847878040284, 25),
start_tweets = "2021-01-01T00:00:00Z",
end_tweets = "2021-01-01T10:00:00Z",
bearer_token = bearer_token, data_path = "data/")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.