View source: R/as.RollingLDA.R
as.RollingLDA | R Documentation |
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
.
as.RollingLDA(x, id, lda, docs, dates, vocab, chunks, param) is.RollingLDA(obj, verbose = FALSE)
x |
[ |
id |
[ |
lda |
[ |
docs |
[ |
dates |
[ |
vocab |
[ |
chunks |
[
If not passed, |
param |
[ |
obj |
[ |
verbose |
[ |
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.
[named list
] RollingLDA
object.
Other RollingLDA functions:
RollingLDA()
,
getChunks()
,
updateRollingLDA()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.