Description Usage Arguments Value Methods (by class) Author(s) See Also Examples
View source: R/text_processing.R
Extract info from tweets
1 2 3 4 5 6 7 8 | tw_extract(txt, ...)
## S3 method for class 'tw_Class_api_timeline'
tw_extract(txt, ...)
## S3 method for class 'character'
tw_extract(txt, obj = c("email", "mention", "hashtag",
"url"), normalize = TRUE, ...)
|
txt |
Object to be passed to the method |
... |
Further arguments to be passed to the method |
obj |
List of objects to extract |
normalize |
bool whether or not to normalize emails, hashtags and mentions (to lower) |
List
tw_Class_api_timeline
: Applies for the output of tw_api_get_statuses_user_timeline()
.
character
: Applies for a character vector
George G. Vega Yon
Other text processors: tw_get_tw_account
,
tw_words
1 2 3 4 5 |
## Not run:
head(tw_extract(tweets$text))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.