clusterinfo: Create a 'clusterinfo' object that can be used for the...

Description Usage Arguments Value

Description

Create a 'clusterinfo' object that can be used for the individual render methods

Usage

1
2
clusterinfo(m, terms = NULL, documents = NULL, words = terms,
  meta = NULL)

Arguments

m:

the fitted LDA model object from the topicmodels package

terms:

a vector of terms, which should be sorted in their original order and match m@terms

documents:

a vector of the same length as terms, indicating the document of each term, matching m@documents

words:

if given, use instead of terms for displaying document.

meta:

Optional meta data. Vectors or a dataframe of which the elements/rows match m@documents.

Value

a list with tokens, wordassignments, and other items


vanatteveldt/topicbrowser documentation built on May 3, 2019, 2:59 p.m.