mergeRepTopics: Merge LDA Topic Matrices

View source: R/mergeRepTopics.R

mergeRepTopicsR Documentation

Merge LDA Topic Matrices

Description

Collects LDA results from a list of replicated runs and merges their topic matrices for a given set of vocabularies.

Usage

mergeRepTopics(...)

## S3 method for class 'LDARep'
mergeRepTopics(x, vocab, progress = TRUE, ...)

## Default S3 method:
mergeRepTopics(lda, vocab, id, progress = TRUE, ...)

Arguments

...

additional arguments

x

[named list]
LDARep object. Alternatively lda and id can be passed.

vocab

[character]
Vocabularies taken into consideration for merging topic matrices. Default is the vocabulary of the first LDA.

progress

[logical(1)]
Should a nice progress bar be shown? Turning it off, could lead to significantly faster calculation. Default ist TRUE.

lda

[named list]
List of LDA objects, named by the corresponding "job.id".

id

[character(1)]
Name for the computation. Default is "LDARep".

Details

For details and examples see mergeTopics.

Value

[named matrix] with the count of vocabularies (row wise) in topics (column wise).

See Also

Other merge functions: mergeBatchTopics(), mergeTopics()

Other replication functions: LDAPrototype(), LDARep(), as.LDARep(), getJob()


JonasRieger/ldaPrototype documentation built on Feb. 5, 2023, 6:45 p.m.