Collect.timeline.twitter {vosonSML} | R Documentation |
Collect tweet data from twitter timelines
Description
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.
Usage
## S3 method for class 'timeline.twitter'
Collect(
credential,
endpoint,
users = c(),
numTweets = 100,
retryOnRateLimit = TRUE,
writeToFile = FALSE,
verbose = FALSE,
...
)
Arguments
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
|
Value
A tibble object with class names "datasource"
and "twitter"
.