-
Notifications
You must be signed in to change notification settings - Fork 4
/
wfm2lda.Rd
37 lines (33 loc) · 928 Bytes
/
wfm2lda.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/wfm.R
\name{wfm2lda}
\alias{wfm2lda}
\title{Transform Word Frequency Matrix for lda}
\usage{
wfm2lda(wfm, dir = NULL, names = c("mult.dat", "vocab.dat"))
}
\arguments{
\item{wfm}{a word frequency matrix}
\item{dir}{a file to dump the converted data}
\item{names}{Names of the data and vocabulary file respectively}
}
\value{
A list containing \item{data}{zero indexed word frequency
information about a set of documents} \item{vocab}{a vocabulary list},
unless \code{dir} is specified.
If \code{dir} is specified then the same information is dumped to
'vocab.dat' and 'mult.dat' in the \code{dir} folder.
}
\description{
Transforms a wfm to the format used by the lda package
}
\details{
See the documentation of \code{lda} package for the relevant object
structures and file formats.
}
\author{
Will Lowe
}
\seealso{
\code{\link{wfm}}
}