Description Usage Arguments Value Examples
Returns the top_n most common words and counts of occurrences from a list of tweets. The output is sorted descending by the count of words and in reverse alphabetical order for any word ties.
1 | tweet_words(clean_dataframe, top_n = 1)
|
clean_dataframe |
dataframe |
top_n |
numeric |
dataframe
data.frame
1 2 3 4 5 6 7 8 | #' @param clean_dataframe data.frame
input_data <- (data.frame(id = c(1,2,3,4,5),
text_only = c("this is example tweet 1",
"this is example tweet 2 with a few extra words",
"is third",
"4th tweet",
"fifth tweet")))
tweet_words(input_data, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.