Learn R Programming

twitterreport (version 0.15.11)

tw_table: Creates a table of frequencies

Description

See tw_extract

Usage

tw_table(x, ...)
"tw_table"(x, obj = c("email", "mention", "hashtag", "url"), ...)

Arguments

x
An object of class tw_Class_extract.
...
Further arguments to be passed to the method
obj
A character indicating

Methods (by class)

  • tw_Class_extract: Makes a table out of the output of tw_extract

See Also

Other statistics: tw_sentiment, tw_timeseries

Examples

Run this code
# Loading tweets
data(senate_tweets)
head(senate_tweets$text)

# Extracting elements and creating tables
x <- tw_extract(senate_tweets$text)

head(tw_table(x,'mention'))

Run the code above in your browser using DataLab