tw_table: Creates a table of frequencies

Description Usage Arguments Details Methods (by class) Author(s) See Also Examples

View source: R/statistics.R

Description

See tw_extract()

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'tw_Class_table'
plot(x, y = NULL, nentries = 20,
  caption = "Most popular hashtags", options = list(pageLength = 5), ...)

tw_table(x, ...)

## S3 method for class 'tw_Class_extract'
tw_table(x, obj = c("email", "mention", "hashtag",
  "url"), ...)

Arguments

x

Either an object of class tw_Class_extract, or tw_Class_table.

y

Ignored

nentries

Number of rows to include in the table

caption, options

Passed to DT::datatable().

...

Further arguments to be passed to the method

obj

A character indicating

Details

In the case of plot.tw_Class_table, ... are passed to DT::datatable()

Methods (by class)

Author(s)

George G. Vega Yon

See Also

Other statistics: plot.tw_Class_ts, tw_sentiment

Examples

1
2
3
4
5
6
7
8
# 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'))

gvegayon/twitterreport documentation built on May 17, 2019, 9:30 a.m.