order.meta: Add document meta to LDA output

Description Usage Arguments Value

Description

Add a dataframe containing document meta to the output (a list) of lda.collapsed.gibbs.sampler.

Usage

1
order.meta(m, meta, match.by = "id")

Arguments

m

The output of LDA

meta

A data.frame with document meta. Has to contain a vector to match the document.ids

match.by

The name of the vector in meta that matches the document.ids

Value

The LDA output appended with document meta


kasperwelbers/corpus-tools documentation built on May 20, 2019, 7:37 a.m.