top_words {texter}R Documentation

Get the top n words from vector of text

Description

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

Usage

top_words(word_vec, remove_these, 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

size

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

Value

a data frame object.

Examples


{
top_words(brexit$content, remove_these = c("news","uk"), size = 10)
}


[Package texter version 0.1.9 Index]