wfm2lda: Transform Word Frequency Matrix for lda

Description Usage Arguments Details Value Author(s) See Also

View source: R/wfm.R

Description

Transforms a wfm to the format used by the lda package

Usage

1
wfm2lda(wfm, dir=NULL, names=c("mult.dat", "vocab.dat"))

Arguments

wfm

a word frequency matrix

dir

a file to dump the converted data

names

Names of the data and vocabulary file respectively

Details

See the documentation of lda package for the relevant object structures and file formats.

Value

A list containing

data

zero indexed word frequency information about a set of documents

vocab

a vocabulary list

, unless dir is specified.

If dir is specified then the same information is dumped to 'vocab.dat' and 'mult.dat' in the dir folder.

Author(s)

Will Lowe

See Also

wfm


austin documentation built on May 31, 2017, 3:59 a.m.