Description Usage Arguments Value Examples
This function utilizes Latent Dirichlet Allocation (LDA) and the
topicmodels
package to allow a user to define a specified number of
k
hidden topics. Once identified, each document's topic is assigned
to a new column in the dataset for further analysis.
1 | topic.models(data.td, k = 2)
|
data.td |
A tidy dataset |
k |
User defined number of topics |
Attaches a new column to data.td
identifying each document in a corpus as belonging to a specific topic
1 | Articles<-topic.models(Articles, k=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.