Description Usage Arguments Value Examples
This method returns a vector containing the N 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 N words of every topic will be returned.
1 2 3 4 5 6 7 8 9 10 11 12 13 | topNwords(x, N, topic = NULL, sentiment = NULL)
## S4 method for signature 'JST_reversed.result,numeric,numeric,numeric'
topNwords(x, N, topic = NULL, sentiment = NULL)
## S4 method for signature 'JST_reversed.result,numeric,ANY,ANY'
topNwords(x, N)
## S4 method for signature 'JST.result,numeric,numeric,numeric'
topNwords(x, N, topic = NULL, sentiment = NULL)
## S4 method for signature 'JST.result,numeric,ANY,ANY'
topNwords(x, N)
|
x |
A results object from any of the models in the package |
N |
Integer. The number of words to return. |
topic |
(optional) Integer. The topic to return words from. |
sentiment |
(optional) Integer. The sentiment to return words from. |
If topic and sentiment are specified: A character vector containing the top N words for the requested topic-sentiment combination. Otherwise a data.frame containing the top N words for every topic-sentiment combination.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.