extract_ngram.Rd
Extract n-grams from the input tweets data
extract_ngram(tweets, n = 3)
A vector of tweets
Length of n-grams to be created Default is 3. n-grams of length 3 will be created
Vector of n-grams
tweets <- c(
"Make", "America", "Great", "Again", "DonaldTrump"
)
extract_ngram(tweets, n=3)
#> [1] "Make America Great" "America Great Again"
#> [3] "Great Again DonaldTrump"