top20words: Show top 20 words for topics/sentiments
Description
This method returns a vector containing the 20 words with the highest
estimated parameter values for any of the models estimated in this package.
If topic (and sentiment for the appropriate models) are not specified, the
top 20 words of every topic will be returned.This method calls the generic
topNwords method.
A results object from any of the models in the package
topic
(optional) Integer. The topic to return words from.
sentiment
(optional) Integer. The sentiment to return words from.
Value
If topic and sentiment are specified: A character vector containing
the top 20 words for the requested topic-sentiment combination. Otherwise a
data.frame containing the top 20 words for every topic-sentiment combination.