top_bigrams: Get the top bigrams from text Get the top n bigrams from...

Description Usage Arguments Value Examples

View source: R/top_bigrams.R

Description

This function is used to get the top N bigrams from a corpus. It will retrieve the most occurring two combinations based on frequency

Usage

1
top_bigrams(word_vec, remove_these, bigram_size)

Arguments

word_vec

This is the corpus you want to extract the sentiments from

remove_these

This is a vector of characters you want cleaned out of the text

bigram_size

This is the Top N number of rows to be retrieved as an integer value

Value

a data frame object.

Examples

1
2
3
{
top_bigrams(brexit[, c("content")], remove_these = c("rt"), bigram_size = 20)
}

texter documentation built on Sept. 20, 2021, 5:08 p.m.