as.RollingLDA {rollinglda} | R Documentation |
RollingLDA Object
Description
Constructor for RollingLDA objects used in this package.
The function may be useful to create a RollingLDA object out of a standard
LDA
object to use it as initial model and
update it using updateRollingLDA
.
Usage
as.RollingLDA(x, id, lda, docs, dates, vocab, chunks, param)
is.RollingLDA(obj, verbose = FALSE)
Arguments
x |
[ |
id |
[ |
lda |
[ |
docs |
[ |
dates |
[ |
vocab |
[ |
chunks |
[
If not passed, |
param |
[ |
obj |
[ |
verbose |
[ |
Details
If you call as.RollingLDA
on an object x
which already is of
the structure of an RollingLDA
object (in particular a RollingLDA
object itself), the additional arguments id, param, ...
may be used to override the specific elements.
Value
[named list
] RollingLDA
object.
See Also
Other RollingLDA functions:
RollingLDA()
,
getChunks()
,
updateRollingLDA()
Examples
roll_lda = RollingLDA(texts = economy_texts,
dates = economy_dates,
chunks = "quarter",
memory = "3 quarter",
init = "2008-07-03",
K = 10,
type = "lda")
is.RollingLDA(roll_lda, verbose = TRUE)
getID(roll_lda)
roll_lda = as.RollingLDA(roll_lda, id = "newID")
getID(roll_lda)