Description Usage Arguments Value Examples
Get a word from a vector of tweets, together with summaries about the usage of this word; frequency, occurrences, percentages, and more
1 | twtr_get_words(x, words, exact = TRUE)
|
x |
a vector of tweets |
words |
a character vector of one or more words |
exact |
logical, defaults to TRUE, do you want the |
a list of data frames about the word
words
: a matrix of occurences of the word, each row corresponding to a
tweet.
top_words
a data frame of the most frequently used words, sorted
word_count
: a data.frame with one column, where each row shows the
number of times the word was used in the corresponding tweet.
word_freq
: a data.frame showing the number of tweets where the word
was used once, where the word was used twice, etc
word_summary
: a summary data.frame shwoing the number of tweets,
total word count, unique words, and words per tweet
1 2 3 4 | tweets <- c("this is my first #tweet with #two hashtags and one @mention",
"my second tweet has no hashtags and no mentions",
"my third #tweet #has #the most hashtags and @mentions @mention")
twtr_get_words(tweets, word = "hashtags", exact = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.