View source: R/Collect.timeline.twitter.R
Collect.timeline.twitter | R Documentation |
This function collects user timeline tweets and structures the data into a dataframe with the class
names "datasource"
and "twitter"
. The Twitter API limits collection to a maximum of 3,200 of the most
recent timeline tweets per user.
## S3 method for class 'timeline.twitter' Collect( credential, endpoint, users = c(), numTweets = 100, retryOnRateLimit = TRUE, writeToFile = FALSE, verbose = FALSE, ... )
credential |
A |
endpoint |
API endpoint. |
users |
Character vector. Specifies one or more twitter users. Can be user names, user ids or a mixture. |
numTweets |
Numeric vector. Specifies how many tweets to be collected per user. Defaults to single value of
|
retryOnRateLimit |
Logical. When the API rate-limit is reached should the collection wait and resume when it
resets. Default is |
writeToFile |
Logical. Write collected data to file. Default is |
verbose |
Logical. Output additional information about the data collection. Default is |
... |
Arguments passed on to
|
A tibble object with class names "datasource"
and "twitter"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.