Description Usage Arguments Value Examples
View source: R/extract_ngram.R
Extract n-grams from the input tweets data
1 | extract_ngram(tweets, n = 3)
|
tweets |
A vector of tweets |
n |
Length of n-grams to be created Default is 3. n-grams of length 3 will be created |
Vector of n-grams
1 2 3 4 | tweets <- c(
"Make", "America", "Great", "Again", "DonaldTrump"
)
extract_ngram(tweets, n=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.