# \donttest{
roll_lda = RollingLDA(texts = economy_texts[economy_dates < "2008-05-01"],
dates = economy_dates[economy_dates < "2008-05-01"],
chunks = "month",
memory = "month",
init = 100,
K = 10,
type = "lda")
# updateRollingLDA = RollingLDA, if first argument is a RollingLDA object
roll_update = RollingLDA(roll_lda,
texts = economy_texts[economy_dates >= "2008-05-01"],
dates = economy_dates[economy_dates >= "2008-05-01"],
chunks = "month",
memory = "month")
roll_update
getChunks(roll_update)
# }
Run the code above in your browser using DataLab