posneg_words {saotd} | R Documentation |
Twitter Positive and Negative Words
Description
Determines and displays the most positive and negative words within the twitter data.
Usage
posneg_words(DataFrameTidy, num_words, filterword = NULL)
Arguments
DataFrameTidy |
DataFrame of Twitter Data that has been tidy'd. |
num_words |
Desired number of words to be returned. |
filterword |
Word or words to be removed. |
Value
A ggplot
Examples
## Not run:
library(saotd)
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
posneg <- posneg_words(DataFrameTidy = tidy_data,
n = 10)
posneg
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
posneg <- posneg_words(DataFrameTidy = tidy_data,
n = 10,
filterword = "fail")
posneg
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
posneg <- posneg_words(DataFrameTidy = tidy_data,
n = 10,
filterword = c("fail", "urgent"))
posneg
## End(Not run)
[Package saotd version 0.3.1 Index]